Versions in this module Expand all Collapse all v0 v0.0.5 Dec 7, 2020 v0.0.4 Dec 20, 2019 v0.0.3 Aug 24, 2019 v0.0.2 May 7, 2019 v0.0.1 Apr 18, 2019 Changes in this version + func NewKey(bitSize int, k, l uint16, args *KeyMetaArgs) (shares KeyShareList, meta *KeyMeta, err error) + func PrepareDocumentHash(privateKeySize int, hashType crypto.Hash, digest []byte) ([]byte, error) + type KeyMeta struct + K uint16 + L uint16 + PublicKey *rsa.PublicKey + VerificationKey *VerificationKey + type KeyMetaArgs struct + E int + P *big.Int + Q *big.Int + R *big.Int + U *big.Int + type KeyShare struct + Id uint16 + Si []byte + func (keyShare KeyShare) EqualsSi(keyShare2 *KeyShare) bool + func (keyShare KeyShare) Sign(doc []byte, hashType crypto.Hash, info *KeyMeta) (sigShare *SigShare, err error) + func (keyShare KeyShare) ToBase64() string + type KeyShareList []*KeyShare + type SigShare struct + C []byte + Id uint16 + Xi []byte + Z []byte + func (sigShare SigShare) Verify(doc []byte, info *KeyMeta) error + type SigShareList []*SigShare + func (sigShareList SigShareList) Join(document []byte, info *KeyMeta) (sig Signature, err error) + type Signature []byte + type VerificationKey struct + I [][]byte + U []byte + V []byte + func NewVerificationKey(l uint16) *VerificationKey