ed25519

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: LGPL-3.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 Keypair

type Keypair struct {
	// contains filtered or unexported fields
}

func GenerateKeypair

func GenerateKeypair() (*Keypair, error)

func NewKeypairFromSeed

func NewKeypairFromSeed(seed string) (*Keypair, error)

func (*Keypair) Address

func (kp *Keypair) Address() string

Address returns the setted address

func (*Keypair) Decode

func (kp *Keypair) Decode(in []byte) error

Decode initializes keypair by decoding input as a KeyringPair

func (*Keypair) Encode

func (kp *Keypair) Encode() []byte

Encode uses scale to encode underlying KeyringPair

func (*Keypair) PublicKey

func (kp *Keypair) PublicKey() string

PublicKey returns the publickey encoded as a string

func (*Keypair) SecretKey added in v1.1.2

func (kp *Keypair) SecretKey() string

SecretKey returns the secretkey encoded as a string

func (*Keypair) SetAddress added in v1.1.2

func (kp *Keypair) SetAddress(address string)

Jump to

Keyboard shortcuts

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