Documentation ¶
Index ¶
- func Verify(sig *Signature, msg []byte, pubk *PublicKey) bool
- func Verify1ForN(sig *Signature, pubk *PublicKey, msgs ...[]byte) bool
- func VerifyGroupMessage(sig *Signature, msgs ...*VerifiableMessage) bool
- func VerifyNFor1(sig *Signature, msg []byte, pubks ...*PublicKey) bool
- type HashPoint
- type KeyPair
- func (kp *KeyPair) Marshal() []byte
- func (kp *KeyPair) MarshalPrivate() []byte
- func (kp *KeyPair) MarshalPublic() []byte
- func (kp *KeyPair) Private() *PrivateKey
- func (kp *KeyPair) Public() *PublicKey
- func (kp *KeyPair) Unmarshal(in []byte) error
- func (kp *KeyPair) UnmarshalPrivate(in []byte) error
- func (kp *KeyPair) UnmarshalPublic(in []byte) error
- type PrivateKey
- type PublicKey
- type Signature
- type VerifiableMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VerifyGroupMessage ¶
func VerifyGroupMessage(sig *Signature, msgs ...*VerifiableMessage) bool
Types ¶
type HashPoint ¶
type HashPoint struct {
// contains filtered or unexported fields
}
func (*HashPoint) SumAggregate ¶
type KeyPair ¶
type KeyPair struct {
// contains filtered or unexported fields
}
func GenerateKey ¶
func GenerateKey() *KeyPair
func KeyFromSeed ¶
func (*KeyPair) MarshalPrivate ¶
func (*KeyPair) MarshalPublic ¶
func (*KeyPair) Private ¶
func (kp *KeyPair) Private() *PrivateKey
func (*KeyPair) UnmarshalPrivate ¶
func (*KeyPair) UnmarshalPublic ¶
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
func (*PrivateKey) Copy ¶
func (pvtk *PrivateKey) Copy() *PrivateKey
func (*PrivateKey) IsNull ¶
func (pvtk *PrivateKey) IsNull() bool
func (*PrivateKey) Marshal ¶
func (pvtk *PrivateKey) Marshal() []byte
func (*PrivateKey) Null ¶
func (pvtk *PrivateKey) Null() *PrivateKey
func (*PrivateKey) Public ¶
func (pvtk *PrivateKey) Public() *PublicKey
func (*PrivateKey) Unmarshal ¶
func (pvtk *PrivateKey) Unmarshal(in []byte) error
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
func Private2Public ¶
func Private2Public(pvtk *PrivateKey) *PublicKey
type Signature ¶
type Signature struct {
// contains filtered or unexported fields
}
func Sign ¶
func Sign(msg []byte, pvtk *PrivateKey) *Signature
type VerifiableMessage ¶
type VerifiableMessage struct {
// contains filtered or unexported fields
}
func NewVerifiableMessage ¶
func NewVerifiableMessage(msg []byte, pubk *PublicKey) *VerifiableMessage
Source Files ¶
Click to show internal directories.
Click to hide internal directories.