sr25519

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: LGPL-3.0 Imports: 4 Imported by: 7 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 string) (*Keypair, error)

func NewKeypairFromKRP

func NewKeypairFromKRP(pair signature.KeyringPair) *Keypair

func NewKeypairFromSeed

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