Documentation ¶
Index ¶
- func KeyGen(curve CurveSystem) (Privkey, Pubkey)
- func Verify(curve CurveSystem, sig Signature, pk Pubkey, msg *big.Int) bool
- func VerifyCustHash(curve CurveSystem, sig Signature, pk Pubkey, msg []byte, ...) bool
- func VerifyHashed(curve CurveSystem, sig Signature, pk Pubkey, msg []byte) bool
- type Privkey
- type Pubkey
- type Signature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Signature ¶
Signature holds the data required to verify a bbsig.
func SignCustHash ¶
func SignCustHash(curve CurveSystem, sk Privkey, msg []byte, hash func([]byte, *big.Int) *big.Int) Signature
SignCustHash creates a BBSig with the provided hash function
func SignHashed ¶
SignHashed creates a BBSig with blake2b256 ran on the message
Click to show internal directories.
Click to hide internal directories.