keys

package
v0.3.2-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSecret = "secret"

Functions

func GenerateKeystore

func GenerateKeystore(key bls.SecretKey, secret string) (map[string]interface{}, error)

Types

type Key

type Key struct {
	Priv     bls.SecretKey
	Pub      bls.PublicKey
	Keystore []byte
}

func GetPregeneratedBLSKeys

func GetPregeneratedBLSKeys() ([]*Key, error)

func NewKey

func NewKey(priv bls.SecretKey, secret string) (*Key, error)

func (*Key) MarshalJSON

func (k *Key) MarshalJSON() ([]byte, error)

func (*Key) UnmarshalJSON

func (k *Key) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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