Versions in this module Expand all Collapse all v0 v0.1.20 Jul 19, 2023 Changes in this version type SigBytes + func (sb SigBytes) MatchesPubkey(bytes []byte, pk *Pub) (match bool) v0.1.19 Jul 6, 2023 v0.1.18 Jul 2, 2023 v0.1.17 Jul 1, 2023 v0.1.16 Jul 1, 2023 v0.1.15 Jun 17, 2023 v0.1.14 Jun 7, 2023 v0.1.13 Jun 7, 2023 Changes in this version + const BlindLen + const CloakLen + const HashLen + const PrvKeyLen + const PubKeyLen + const SigLen + func ComputeSharedSecret(prv *Prv, pub *Pub) sha256.Hash + func GenNonces(count int) (n []nonce.IV) + func GenPingNonces() (n [6]nonce.IV) + func GenerateTestKeyPair() (sp *Prv, sP *Pub, e error) + func GenerateTestKeyPairs() (sp, rp *Prv, sP, rP *Pub, e error) + func GetCipherSet() (prvs Privs, pubs Pubs) + func Match(r CloakedPubKey, k PubBytes) bool + func NewSigner() (first *Prv, ks *KeySet, e error) + type Blinder [BlindLen]byte + type Ciphers [3]sha256.Hash + func GenCiphers(prvs Privs, pubs Pubs) (ciphers Ciphers) + type CloakedPubKey [CloakLen]byte + func Cloak(b Blinder, key PubBytes) (c CloakedPubKey) + func GetCloak(s *Pub) (c CloakedPubKey) + type Hash [HashLen]byte + type KeySet struct + Base *Prv + Increment *Prv + Mutex sync.Mutex + func (ks *KeySet) Next() (n *Prv) + func (ks *KeySet) Next2() (n [2]*Prv) + func (ks *KeySet) Next3() (n [3]*Prv) + type Keys struct + Bytes PubBytes + Prv *Prv + Pub *Pub + func Generate2Keys() (one, two *Keys, e error) + func GenerateKeys() (k *Keys, e error) + func MakeKeys(pr *Prv) *Keys + type Nonces [3]nonce.IV + func Gen3Nonces() (n Nonces) + type Privs [3]*Prv + type Prv secp256k1.PrivateKey + func GeneratePrvKey() (prv *Prv, e error) + func GetTwoPrvKeys() (prv1, prv2 *Prv) + func PrvFromBased32(s string) (k *Prv, e error) + func PrvKeyFromBytes(b []byte) *Prv + func (p *Prv) Equals(key crypto.Key) (eq bool) + func (p *Prv) GetPublic() crypto.PubKey + func (p *Prv) Raw() ([]byte, error) + func (p *Prv) Sign(bytes []byte) ([]byte, error) + func (p *Prv) ToBased32() (s string) + func (p *Prv) ToBytes() (b PrvBytes) + func (p *Prv) Type() crypto_pb.KeyType + func (p *Prv) Zero() + type PrvBytes [PrvKeyLen]byte + func (pb PrvBytes) Zero() + type Pub secp256k1.PublicKey + func DerivePub(prv *Prv) *Pub + func PubFromBased32(s string) (k *Pub, e error) + func PubFromBytes(b []byte) (pub *Pub, e error) + func (k *Pub) Equals(key crypto.Key) (eq bool) + func (k *Pub) Raw() ([]byte, error) + func (k *Pub) String() (s string) + func (k *Pub) ToBased32() (s string) + func (k *Pub) ToBased32Abbreviated() (s string) + func (k *Pub) ToBytes() (p PubBytes) + func (k *Pub) ToHex() (s string, e error) + func (k *Pub) ToPublicKey() *secp256k1.PublicKey + func (k *Pub) Type() crypto_pb.KeyType + func (k *Pub) Verify(data []byte, sigBytes []byte) (is bool, e error) + type PubBytes [PubKeyLen]byte + func (pb PubBytes) Equals(qb PubBytes) bool + func (pb PubBytes) String() (s string) + func (pb PubBytes) ToBased32() (s string) + type Pubs [3]*Pub + type SigBytes [SigLen]byte + func SigFromBased32(s string) (sig SigBytes, e error) + func Sign(prv *Prv, hash sha256.Hash) (sig SigBytes, e error) + func (sb SigBytes) Recover(hash sha256.Hash) (p *Pub, e error) + func (sb SigBytes) String() string v0.1.11 Jan 19, 2023 v0.1.10 Jan 19, 2023 v0.1.9 Jan 17, 2023