sr25519

package
v0.0.0-...-b4f0473 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 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 Alice

func Alice() *Keypair

func Bob

func Bob() *Keypair

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 formatted 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