sr25519

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: LGPL-3.0 Imports: 5 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(network uint8) (*Keypair, error)

func NewKeypairFromKRP

func NewKeypairFromKRP(pair signature.KeyringPair) *Keypair

func NewKeypairFromSeed

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

func (*Keypair) Address

func (kp *Keypair) Address() string

Address returns the ss58 formated address

func (*Keypair) AsKeyringPair

func (kp *Keypair) AsKeyringPair() *signature.KeyringPair

AsKeyringPair returns the underlying KeyringPair

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

Jump to

Keyboard shortcuts

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