v2

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Overview

Sequence v2 core primitives

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type WalletConfig

type WalletConfig struct {
	Threshold_  uint16           `json:"threshold" toml:"threshold"`
	Checkpoint_ uint32           `json:"checkpoint" toml:"checkpoint"`
	Tree        WalletConfigTree `json:"tree" toml:"tree"`
}

func (*WalletConfig) BuildNoChainIDSignature

func (c *WalletConfig) BuildNoChainIDSignature(ctx context.Context, sign core.SigningFunction) (core.Signature[*WalletConfig], error)

func (*WalletConfig) BuildRegularSignature

func (c *WalletConfig) BuildRegularSignature(ctx context.Context, sign core.SigningFunction) (core.Signature[*WalletConfig], error)

func (*WalletConfig) Checkpoint

func (c *WalletConfig) Checkpoint() uint32

func (*WalletConfig) ImageHash

func (c *WalletConfig) ImageHash() core.ImageHash

func (*WalletConfig) Signers

func (c *WalletConfig) Signers() map[common.Address]struct{}

func (*WalletConfig) Threshold

func (c *WalletConfig) Threshold() uint16

type WalletConfigTree

type WalletConfigTree interface {
	core.ImageHashable
	// contains filtered or unexported methods
}

func DecodeWalletConfigTree

func DecodeWalletConfigTree(object any) (WalletConfigTree, error)

type WalletConfigTreeAddressLeaf

type WalletConfigTreeAddressLeaf struct {
	Weight  uint8          `json:"weight" toml:"weight"`
	Address