sr25519

package
v0.0.0-...-77e7770 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 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 GenerateKeypair

func GenerateKeypair(network uint16) (*Keypair, error)

func NewKeypairFromKRP

func NewKeypairFromKRP(pair signature.KeyringPair) *Keypair

func NewKeypairFromSeed

func NewKeypairFromSeed(seed string, network uint16) (*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, error)

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