v2

package
v0.43.4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 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, validateSigningPower ...bool) (core.Signature[*WalletConfig], error)

func (*WalletConfig) BuildRegularSignature

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

func (*WalletConfig) Checkpoint

func (c *WalletConfig) Checkpoint() uint32

func (*WalletConfig) ImageHash

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

func (*WalletConfig) IsUsable added in v0.22.0

func (c *WalletConfig) IsUsable() error

func (*WalletConfig) Signers

func (c *WalletConfig) Signers() map[common.Address]uint16

func (*WalletConfig) SignersWeight added in v0.22.0

func (c *WalletConfig) SignersWeight(signers []common.Address) uint16

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)

func WalletConfigTreeNodes added in v0.22.0

func WalletConfigTreeNodes(nodes ...WalletConfigTree) WalletConfigTree

type WalletConfigTreeAddressLeaf

type WalletConfigTreeAddressLeaf struct {
	Weight  uint8          `json:"weight" toml:"weight"`
	Address common.Address `json:"address" toml:"address"`
}

func (*WalletConfigTreeAddressLeaf) ImageHash

func (*WalletConfigTreeAddressLeaf) MarshalJSON

func (l *WalletConfigTreeAddressLeaf) MarshalJSON() ([]byte, error)

type WalletConfigTreeNestedLeaf

type WalletConfigTreeNestedLeaf struct {
	Weight    uint8            `json:"weight" toml:"weight"`
	Threshold uint16           `json:"threshold" toml:"threshold"`
	Tree      WalletConfigTree `json:"tree" toml:"tree"`
}

func (*WalletConfigTreeNestedLeaf) ImageHash

func (l *WalletConfigTreeNestedLeaf) ImageHash() core.ImageHash

type WalletConfigTreeNode

type WalletConfigTreeNode struct {
	Left  WalletConfigTree `json:"left" toml:"left"`
	Right WalletConfigTree `json:"right" toml:"right"`
}

func (*WalletConfigTreeNode) ImageHash

func (n *WalletConfigTreeNode) ImageHash() core.ImageHash

type WalletConfigTreeNodeLeaf

type WalletConfigTreeNodeLeaf struct {
	Node core.ImageHash `json:"node" toml:"node"`
}

func (WalletConfigTreeNodeLeaf) ImageHash

func (l WalletConfigTreeNodeLeaf) ImageHash() core.ImageHash

type WalletConfigTreeSubdigestLeaf

type WalletConfigTreeSubdigestLeaf struct {
	Subdigest core.Subdigest `json:"subdigest" toml:"subdigest"`
}

func (WalletConfigTreeSubdigestLeaf) ImageHash

Jump to

Keyboard shortcuts

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