Documentation
¶
Overview ¶
Package accumulator implements a cryptographic accumulator. An accumulator is like a merkle tree but the proofs are constant size. This package is just a toy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKey ¶
func GenerateKey(random io.Reader) (*PublicKey, *PrivateKey, error)
GenerateKey generates an RSA accumulator keypair. The private key is mostly used for debugging and should usually be destroyed as part of a trusted setup phase.
func HashToPrime ¶
Types ¶
type PrivateKey ¶
type PrivateKey struct {
P, Q *big.Int
N *big.Int // N = P*Q
Totient *big.Int // Totient = (P-1)*(Q-1)
}
PrivateKey is the private key for an RSA accumulator. It is not needed for typical uses of an accumulator.
func (*PrivateKey) Accumulate ¶
Click to show internal directories.
Click to hide internal directories.