Versions in this module Expand all Collapse all v0 v0.1.1 Feb 11, 2022 v0.1.0 Jan 24, 2022 Changes in this version + var BLSKeyGroup = BLSPairing.G1() + var BLSPairing = bls12381.NewBLS12381Suite() + func BLSPointFromHex(hexStr string) (kyber.Point, error) + func BLSPointToHex(p kyber.Point) string + func DerivePubkey(secret kyber.Scalar) *bls12381.KyberG1 + func MustBLSPointFromHex(hexStr string) kyber.Point + func NewKeyPair() (secret kyber.Scalar, pubkey *bls12381.KyberG1) + func NewTBLSPoly(t uint) (pri *share.PriPoly, pub *share.PubPoly) + func ReadPlaintextPassword(filePath string) (string, error) + func WritePlaintextPassword(filePath string, overwrite bool, password string) error + type BLSPubkeyHex struct + func (p *BLSPubkeyHex) UnmarshalText(b []byte) error + func (p BLSPubkeyHex) MarshalText() ([]byte, error) + type Keystore struct + Crypto map[string]interface{} + Description string + Path string + Pubkey string + UUID string + Version uint + func BLSKeyPairToKeystore(scalar kyber.Scalar, pubkey kyber.Point, password string) (*Keystore, error) + func LoadKeystore(filePath string) (*Keystore, error) + func NewBLSKeystore(password string) (*Keystore, kyber.Scalar, kyber.Point, error) + func TBLSShareToKeystore(scheme *TBLSScheme, priPoly *share.PriShare, password string) (*Keystore, error) + func (k *Keystore) BLSKeyPair(password string) (kyber.Scalar, kyber.Point, error) + func (k *Keystore) Save(filePath string) error + type TBLSScheme struct + func (t *TBLSScheme) Encode() (TBLSSchemeEncoded, error) + func (t *TBLSScheme) MarshalJSON() ([]byte, error) + func (t *TBLSScheme) Pubkey() kyber.Point + func (t *TBLSScheme) UnmarshalJSON(data []byte) error + type TBLSSchemeEncoded []BLSPubkeyHex + func (t TBLSSchemeEncoded) Decode() (*TBLSScheme, error)