v1

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Sequence v1 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"`
	Signers_   []*WalletConfigSigner `json:"signers" toml:"signers"`
}

func (*WalletConfig) BuildSignature

func (c *WalletConfig) BuildSignature(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 WalletConfigSigner

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

func (*WalletConfigSigner) MarshalJSON

func (s *WalletConfigSigner) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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