sr25519

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Overview

Package sr25519 provides helper functions for the go-schnorrkel library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPK

func NewPK(data []byte) (*schnorrkel.PublicKey, error)

NewPK decodes a public key from the passed byte slice.

func NewPKFromHex

func NewPKFromHex(hex string) (*schnorrkel.PublicKey, error)

NewPKFromHex returns a public key by decoding a hex string. Accepts hex strings with and without 0x.

func NewPKFromRng

func NewPKFromRng(rng io.Reader) (*schnorrkel.PublicKey, error)

NewPKFromRng returns a new public key by readind data from rng.

func NewSK

func NewSK(data []byte) (*schnorrkel.MiniSecretKey, error)

NewSK decodes a secret key from the passed byte slice.

func NewSKFromHex

func NewSKFromHex(hex string) (*schnorrkel.MiniSecretKey, error)

NewSKFromHex returns a secret key by decoding a hex string. Accepts hex strings with and without 0x.

func NewSKFromRng

func NewSKFromRng(rng io.Reader) (*schnorrkel.MiniSecretKey, error)

NewSKFromRng returns a new secret key by readind data from rng.

Types

This section is empty.

Jump to

Keyboard shortcuts

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