Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKeyPair ¶
func NewKeyPair(keyLength, threshold int) (*PublicKey, *PrivateKey, error)
NewKeyPair generates a new public and private key. The key length must be large enough to encrypt the message. The threshold should be greater than the maximum integer that will be encrypted.
func RequirePublicKeysEqual ¶
func RequirePublicKeysEqual(x, y *PublicKey)
Types ¶
type PrivateKey ¶
PrivateKey must be kept secret
type PrivateKeyInfo ¶
PrivateKeyInfo is used to serialize
type PublicKeyInfo ¶
PublicKeyInfo is used to serialize
Click to show internal directories.
Click to hide internal directories.