Documentation ¶
Overview ¶
Package sr25519 provides helper functions for the go-schnorrkel library.
Index ¶
- func NewPK(data []byte) (*schnorrkel.PublicKey, error)
- func NewPKFromHex(hex string) (*schnorrkel.PublicKey, error)
- func NewPKFromRng(rng io.Reader) (*schnorrkel.PublicKey, error)
- func NewSK(data []byte) (*schnorrkel.MiniSecretKey, error)
- func NewSKFromHex(hex string) (*schnorrkel.MiniSecretKey, error)
- func NewSKFromRng(rng io.Reader) (*schnorrkel.MiniSecretKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPKFromHex ¶
NewPKFromHex returns a public key by decoding a hex string. Accepts hex strings with and without 0x.
func NewPKFromRng ¶
NewPKFromRng returns a new public key by readind data from rng.
func NewSKFromHex ¶
NewSKFromHex returns a secret key by decoding a hex string. Accepts hex strings with and without 0x.
func NewSKFromRng ¶
NewSKFromRng returns a new secret key by readind data from rng.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.