Documentation ¶
Overview ¶
nolint
nolint
Index ¶
- Variables
- func BaseGas(method uint8, signatures int) uint64
- func ExecGas(method uint8, keys int) uint64
- func LoadGas(keys int) uint64
- func NewHandler(address core.Address) core.Handler
- func Register(registry *registry.Registry)
- type MultiSig
- func (ms *MultiSig) BaseGas(method uint8) uint64
- func (t *MultiSig) DecodeScale(dec *scale.Decoder) (total int, err error)
- func (t *MultiSig) EncodeScale(enc *scale.Encoder) (total int, err error)
- func (ms *MultiSig) ExecGas(method uint8) uint64
- func (ms *MultiSig) LoadGas() uint64
- func (ms *MultiSig) MaxSpend(method uint8, args any) (uint64, error)
- func (ms *MultiSig) Spend(host core.Host, args *SpendArguments) error
- func (ms *MultiSig) Verify(host core.Host, raw []byte, dec *scale.Decoder) bool
- type Part
- type Signatures
- type SpawnArguments
- type SpendArguments
- type SpendTemplate
Constants ¶
This section is empty.
Variables ¶
View Source
var (
TemplateAddress core.Address
)
Functions ¶
func NewHandler ¶
NewHandler instantiates multisig handler with a particular configuration.
Types ¶
type MultiSig ¶
MultiSig K/N template.
func (*MultiSig) DecodeScale ¶
func (*MultiSig) EncodeScale ¶
type Part ¶
Part contains a reference to public key and signature from private key counterpart.
func (*Part) DecodeScale ¶
func (*Part) EncodeScale ¶
type Signatures ¶
type Signatures []Part
Signatures is a collections of parts that must satisfy multisig threshold requirement.
type SpawnArguments ¶
type SpawnArguments struct { Required uint8 PublicKeys []core.PublicKey `scale:"max=10"` // update StorageLimit if it changes. }
SpawnArguments contains a collection with PublicKeys.
func (*SpawnArguments) DecodeScale ¶
func (t *SpawnArguments) DecodeScale(dec *scale.Decoder) (total int, err error)
func (*SpawnArguments) EncodeScale ¶
func (t *SpawnArguments) EncodeScale(enc *scale.Encoder) (total int, err error)
type SpendTemplate ¶
type SpendTemplate interface {
Spend(core.Host, *SpendArguments) error
}
SpendTemplate interface for the template that support Spend method.
Click to show internal directories.
Click to hide internal directories.