account

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountNonceProvider

type AccountNonceProvider interface {
	GetNonce(account *account.Account) uint64
}

type AccountProvider

type AccountProvider interface {
	Account() *account.Account
}

AccountProvider provides public key and private key for signing consensus messages

type AccountSignerSignatureProvider

type AccountSignerSignatureProvider struct {
	Signer          og_interface.ISigner
	AccountProvider AccountProvider
}

func NewAccountSignerSignatureProvider

func NewAccountSignerSignatureProvider(signer og_interface.ISigner, myAccountProvider AccountProvider) *AccountSignerSignatureProvider

func (AccountSignerSignatureProvider) Sign

type PrivateInfoProvider

type PrivateInfoProvider interface {
	PrivateInfo() *account.PrivateInfo
}

type SignatureProvider

type SignatureProvider interface {
	Sign(data []byte) (publicKey []byte, signature []byte)
}

Jump to

Keyboard shortcuts

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