Skip to content

Instantly share code, notes, and snippets.

View revofusion's full-sized avatar

Revofusion revofusion

View GitHub Profile
@revofusion
revofusion / stale_exited_producer_votes_poc_test.go
Created June 24, 2026 21:52
phantom-VE PoC: stale exited validator power elects inactive producer pre-Zurich (heimdall-v2)
package keeper_test
import (
"encoding/hex"
"fmt"
"github.com/cometbft/cometbft/crypto/secp256k1"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/golang/mock/gomock"
@revofusion
revofusion / crit_offensive_1_exit_stakeupdate_vp_restoration_poc_test.go
Created June 24, 2026 21:52
CRIT-OFFENSIVE-1 PoC: exit+stake-update VP restore pre-Zurich (heimdall-v2)
package keeper_test
import (
"math/big"
"testing"
cosmosmath "cosmossdk.io/math"
"github.com/cosmos/cosmos-sdk/codec/address"
"github.com/ethereum/go-ethereum/common"
ethTypes "github.com/ethereum/go-ethereum/core/types"
@revofusion
revofusion / rune.ts
Created September 27, 2023 01:13
Rune Scripts: PrefixVarint and Base 26 (A=1) Name
/**
Convert between rune symbols and values using Base 26 (A=1)
Similar rust implementation at https://github.com/ordinals/ord/blob/f3cae5400fdebf31bfd494a02c846a90ea12310d/src/sat.rs#L63
*/
class Rune {
constructor(public value: number) { }
public get name(): string {
let x = this.value;