merkle_root_multisig

package
v0.0.0-...-eab7081 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 16 Imported by: 3

Documentation

Index

Constants

View Source
const (
	ORIGIN_MAILBOX_OFFSET        = 0
	CHECKPOINT_INDEX_OFFSET      = 32
	CHECKPOINT_MESSAGE_ID_OFFSET = 36
	MERKLE_PROOF_OFFSET          = 68
	MERKLE_PROOF_LENGTH          = 32 * 32
	SIGNATURES_OFFSET            = 1092
	SIGNATURE_LENGTH             = 65
)

Merkle root multisig metadata released with message id multisig Note: Not currently used yet, see legacy folder for heckpoint metadata in use

Variables

View Source
var (
	ErrInvalidLengthMerkleRootMultisig        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMerkleRootMultisig          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMerkleRootMultisig = fmt.Errorf("proto: unexpected end of group")
)

Functions

func Digest

func Digest(
	origin uint32,
	originMailbox []byte,
	root []byte,
	index uint32,
	messageId []byte,
) []byte

Checkpoint calculation released with message id multisig Note: Not currently used yet, see legacy folder for checkpoint in use

func DomainHash

func DomainHash(origin uint32, originMailbox []byte) []byte

func Index

func Index(metadata []byte) uint32

func MessageId

func MessageId(metadata []byte) []byte

func OriginMailbox

func OriginMailbox(metadata []byte) []byte

func Proof

func Proof(metadata []byte) []byte

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces registers the hyperlane mailbox implementations and interfaces.

func SignatureAt

func SignatureAt(metadata []byte, index uint32) []byte

Types

type MerkleRootMultiSig

type MerkleRootMultiSig struct {
	// Validator pub keys
	ValidatorPubKeys []string `protobuf:"bytes,1,rep,name=validator_pub_keys,json=validatorPubKeys,proto3" json:"validator_pub_keys,omitempty"`
	// number of validators required
	Threshold uint32 `protobuf:"varint,2,opt,name=threshold,proto3" json:"threshold,omitempty"`
}

MerkleRootMultiSig ISM for a specific origin

func (*MerkleRootMultiSig) CustomIsmEvent

func (i *MerkleRootMultiSig) CustomIsmEvent(index uint32) sdk.Event

func (*MerkleRootMultiSig) DefaultIsmEvent

func (i *MerkleRootMultiSig) DefaultIsmEvent(origin uint32) sdk.Event

func (*MerkleRootMultiSig) Descriptor

func (*MerkleRootMultiSig) Descriptor() ([]byte, []int)

func (*MerkleRootMultiSig) Marshal

func (m *MerkleRootMultiSig) Marshal() (dAtA []byte, err error)

func (*MerkleRootMultiSig) MarshalTo

func (m *MerkleRootMultiSig) MarshalTo(dAtA []byte) (int, error)

func (*MerkleRootMultiSig) MarshalToSizedBuffer

func (m *MerkleRootMultiSig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MerkleRootMultiSig) ProtoMessage

func (*MerkleRootMultiSig) ProtoMessage()

func (*MerkleRootMultiSig) Reset

func (m *MerkleRootMultiSig) Reset()

func (*MerkleRootMultiSig) Size

func (m *MerkleRootMultiSig) Size() (n int)

func (*MerkleRootMultiSig) String

func (m *MerkleRootMultiSig) String() string

func (*MerkleRootMultiSig) Unmarshal

func (m *MerkleRootMultiSig) Unmarshal(dAtA []byte) error

func (*MerkleRootMultiSig) Validate

func (i *MerkleRootMultiSig) Validate() error

func (*MerkleRootMultiSig) Verify

func (i *MerkleRootMultiSig) Verify(metadata []byte, message []byte) (bool, error)

func (*MerkleRootMultiSig) VerifyValidatorSignatures

func (i *MerkleRootMultiSig) VerifyValidatorSignatures(metadata []byte, message []byte) bool

func (*MerkleRootMultiSig) XXX_DiscardUnknown

func (m *MerkleRootMultiSig) XXX_DiscardUnknown()

func (*MerkleRootMultiSig) XXX_Marshal

func (m *MerkleRootMultiSig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MerkleRootMultiSig) XXX_Merge

func (m *MerkleRootMultiSig) XXX_Merge(src proto.Message)

func (*MerkleRootMultiSig) XXX_Size

func (m *MerkleRootMultiSig) XXX_Size() int

func (*MerkleRootMultiSig) XXX_Unmarshal

func (m *MerkleRootMultiSig) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL