signing

package
v1.35.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Code generated by fastssz. DO NOT EDIT. Hash: c953c4b72fdc3f250f4227b181e286fe53fd663c5aa4f5cc3de6cc9998c7fdb7 Version: 0.1.2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lock

func Lock(ctx context.Context, account e2wtypes.Account) error

Lock attempts to lock an account.

func SignRoot

func SignRoot(ctx context.Context, account e2wtypes.Account, passphrases []string, root spec.Root, domain spec.Domain) (spec.BLSSignature, error)

SignRoot signs a root with a domain.

func Unlock

func Unlock(ctx context.Context, account e2wtypes.Account, passphrases []string) (bool, error)

Unlock attempts to unlock an account. It returns true if the account was already unlocked.

Types

type Container

type Container struct {
	Root   []byte `ssz-size:"32"`
	Domain []byte `ssz-size:"32"`
}

Container contains a root and domain to sign.

func (*Container) GetTree added in v1.26.0

func (c *Container) GetTree() (*ssz.Node, error)

GetTree ssz hashes the Container object

func (*Container) HashTreeRoot

func (c *Container) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Container object

func (*Container) HashTreeRootWith

func (c *Container) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Container object with a hasher

func (*Container) MarshalSSZ

func (c *Container) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Container object

func (*Container) MarshalSSZTo

func (c *Container) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Container object to a target array

func (*Container) SizeSSZ

func (c *Container) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the Container object

func (*Container) UnmarshalSSZ

func (c *Container) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Container object

Jump to

Keyboard shortcuts

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