Versions in this module Expand all Collapse all v2 v2.3.3 Oct 19, 2023 Changes in this version + func Decrypt(key *PrivateKey, ciphertext *Ciphertext) *bn256.GT + func HashToGT(bytestring []byte) *bn256.GT + func HashToZp(bytestring []byte) *big.Int + func Setup(random io.Reader, l int) (*Params, MasterKey, error) + type Ciphertext struct + A *bn256.GT + B *bn256.G2 + C *bn256.G1 + func Encrypt(random io.Reader, params *Params, id []*big.Int, message *bn256.GT) (*Ciphertext, error) + func (ciphertext *Ciphertext) Marshal() []byte + func (ciphertext *Ciphertext) Unmarshal(marshalled []byte) (*Ciphertext, bool) + type MasterKey *bn256.G1 + type Params struct + G *bn256.G2 + G1 *bn256.G2 + G2 *bn256.G1 + G3 *bn256.G1 + H []*bn256.G1 + Pairing *bn256.GT + func (params *Params) Marshal() []byte + func (params *Params) MaximumDepth() int + func (params *Params) Precache() + func (params *Params) Unmarshal(marshalled []byte) (*Params, bool) + type PrivateKey struct + A0 *bn256.G1 + A1 *bn256.G2 + B []*bn256.G1 + func KeyGenFromMaster(random io.Reader, params *Params, master MasterKey, id []*big.Int) (*PrivateKey, error) + func KeyGenFromParent(random io.Reader, params *Params, parent *PrivateKey, id []*big.Int) (*PrivateKey, error) + func (key *PrivateKey) Marshal() []byte + func (key *PrivateKey) Unmarshal(marshalled []byte) (*PrivateKey, bool) + func (privkey *PrivateKey) DepthLeft() int