Documentation ¶
Index ¶
Constants ¶
View Source
const Ed25519AccountType = "ed25519"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account interface { Type() []byte PublicKey() []byte Sign(payload []byte) []byte Verify(payload []byte, signature []byte) bool }
func GetAccount ¶
type Ed25519Account ¶
type Ed25519Account struct {
// contains filtered or unexported fields
}
func NewEd25519Account ¶
func NewEd25519Account() *Ed25519Account
func NewEd25519AccountFromPublicKey ¶
func NewEd25519AccountFromPublicKey(publicKey []byte) *Ed25519Account
func (*Ed25519Account) PublicKey ¶
func (account *Ed25519Account) PublicKey() []byte
func (*Ed25519Account) Sign ¶
func (account *Ed25519Account) Sign(payload []byte) []byte
func (*Ed25519Account) String ¶
func (account *Ed25519Account) String() string
func (*Ed25519Account) Type ¶
func (account *Ed25519Account) Type() []byte
type GenericAccount ¶
func (GenericAccount) String ¶
func (g GenericAccount) String() string
Click to show internal directories.
Click to hide internal directories.