Documentation
¶
Index ¶
- Constants
- Variables
- type CounterChain
- func (c *CounterChain) CreateLegacyMetadata(message []byte, proof [imt.TreeDepth][32]byte) (metadata []byte)
- func (c *CounterChain) CreateMerkleRootMetadata(message []byte, proof [imt.TreeDepth][32]byte) (metadata []byte)
- func (c *CounterChain) CreateMessage(sender string, originDomain uint32, destDomain uint32, recipient string, ...) (message []byte, proof [imt.TreeDepth][32]byte)
- func (c *CounterChain) CreateMessageIdMetadata(message []byte) (metadata []byte)
- func (c *CounterChain) CreateRelayerLegacyMetadata(message []byte, proof [imt.TreeDepth][32]byte, originMailbox []byte) (metadata []byte)
- func (c *CounterChain) GetMessageId(message []byte) []byte
- func (c *CounterChain) Sign(digest []byte) []byte
- func (c *CounterChain) VerifyAbstractIsm(ism ismtypes.AbstractIsm) bool
- type Val
- type ValSet
Constants ¶
View Source
const MAX_MESSAGE_BODY_BYTES = 2_000
Variables ¶
View Source
var ( LEGACY_MULTISIG = "LegacyMultiSig" MERKLE_ROOT_MULTISIG = "MerkleRootMultiSig" MESSAGE_ID_MULTISIG = "MessageIdMultiSig" )
Functions ¶
This section is empty.
Types ¶
type CounterChain ¶
func CreateCounterChain ¶
func CreateCounterChain(t *testing.T, domain uint32, ismType string) *CounterChain
func CreateEmperorValidator ¶
func CreateEmperorValidator(t *testing.T, domain uint32, ismType string, privKey string) *CounterChain
He's the emperor because he's the only one
func (*CounterChain) CreateLegacyMetadata ¶
func (c *CounterChain) CreateLegacyMetadata(message []byte, proof [imt.TreeDepth][32]byte) (metadata []byte)
Validator will not have proof -- needs to get it from relayer which assembles it. Relayer assembles message, metadata, and proof
func (*CounterChain) CreateMerkleRootMetadata ¶
func (*CounterChain) CreateMessage ¶
func (*CounterChain) CreateMessageIdMetadata ¶
func (c *CounterChain) CreateMessageIdMetadata(message []byte) (metadata []byte)
func (*CounterChain) CreateRelayerLegacyMetadata ¶
func (c *CounterChain) CreateRelayerLegacyMetadata(message []byte, proof [imt.TreeDepth][32]byte, originMailbox []byte) (metadata []byte)
Relayer assembles message, metadata, and proof but does not sign
func (*CounterChain) GetMessageId ¶
func (c *CounterChain) GetMessageId(message []byte) []byte
func (*CounterChain) Sign ¶
func (c *CounterChain) Sign(digest []byte) []byte
func (*CounterChain) VerifyAbstractIsm ¶
func (c *CounterChain) VerifyAbstractIsm(ism ismtypes.AbstractIsm) bool
type Val ¶
type Val struct { Addr string Priv *ecdsa.PrivateKey }
Click to show internal directories.
Click to hide internal directories.