Documentation ¶
Index ¶
- func Initialization(c CurveType)
- type CurveType
- type ID
- func (id *ID) Deserialize(buf []byte) error
- func (id *ID) GetDecString() string
- func (id *ID) GetHexString() string
- func (id *ID) GetLittleEndian() []byte
- func (id *ID) IsEqual(rhs *ID) bool
- func (id *ID) IsZero() bool
- func (id *ID) Serialize() []byte
- func (id *ID) SerializeToHexStr() string
- func (id *ID) SetDecString(s string) error
- func (id *ID) SetHexString(s string) error
- func (id *ID) SetInt(x int)
- func (id *ID) SetLittleEndian(buf []byte) error
- type PublicKey
- func (p *PublicKey) Add(rhs *PublicKey)
- func (p *PublicKey) Deserialize(serialBuf []byte) error
- func (p *PublicKey) IsEqual(rhs *PublicKey) bool
- func (p *PublicKey) IsValidOrder() bool
- func (p *PublicKey) IsZero() bool
- func (p *PublicKey) Mul(sec *SecretKey)
- func (p *PublicKey) Recover(pubVec []PublicKey, idVec []ID) error
- func (p *PublicKey) Serialize() []byte
- func (p *PublicKey) SerializeToHexStr() string
- func (p *PublicKey) SetByMpkAndID(mpk []PublicKey, id *ID) error
- type SecretKey
- func (s *SecretKey) Add(rhs *SecretKey)
- func (s *SecretKey) Deserialize(serialBuf []byte) error
- func (s *SecretKey) GetPublicKey() (p *PublicKey)
- func (s *SecretKey) IsEqual(rhs *SecretKey) bool
- func (s *SecretKey) IsZero() bool
- func (s *SecretKey) Recover(secVec []SecretKey, idVec []ID) error
- func (s *SecretKey) Serialize() []byte
- func (s *SecretKey) SerializeToHexStr() string
- func (s *SecretKey) Set(msk []SecretKey, id *ID) error
- func (s *SecretKey) SetByMskAndID(msk []SecretKey, id *ID) error
- func (s *SecretKey) SetLittleEndian(buf []byte) error
- func (s *SecretKey) SetLittleEndianMod(buf []byte) error
- func (s *SecretKey) Sign(msg string) (sig *Signature)
- func (s *SecretKey) SignHash(hash []byte) *Signature
- type Signature
- func (sig *Signature) Add(rhs *Signature)
- func (sig *Signature) AggregateSignature(sigVec []Signature)
- func (sig *Signature) Deserialize(serialBuf []byte) error
- func (sig *Signature) FastAggregateVerify(pubVec []PublicKey, msg []byte) bool
- func (sig *Signature) IsEqual(rhs *Signature) bool
- func (sig *Signature) IsValidOrder() bool
- func (sig *Signature) IsZero() bool
- func (sig *Signature) Recover(sigVec []Signature, idVec []ID) error
- func (sig *Signature) Serialize() []byte
- func (sig *Signature) SerializeToHexStr() string
- func (sig *Signature) Verify(p *PublicKey, msg string) bool
- func (sig *Signature) VerifyAggregateHashes(pubVec []PublicKey, hash [][]byte) bool
- func (sig *Signature) VerifyHash(p *PublicKey, hash []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialization ¶
func Initialization(c CurveType)
Types ¶
type ID ¶
type ID struct {
// contains filtered or unexported fields
}
func (*ID) Deserialize ¶
func (*ID) GetDecString ¶
func (*ID) GetHexString ¶
func (*ID) GetLittleEndian ¶
func (*ID) SerializeToHexStr ¶
func (*ID) SetDecString ¶
func (*ID) SetHexString ¶
func (*ID) SetLittleEndian ¶
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
func (*PublicKey) Deserialize ¶
func (*PublicKey) IsValidOrder ¶
func (*PublicKey) SerializeToHexStr ¶
type SecretKey ¶
type SecretKey struct {
// contains filtered or unexported fields
}
func CreateSecretKey ¶
func CreateSecretKey() *SecretKey
func (*SecretKey) Deserialize ¶
func (*SecretKey) GetPublicKey ¶
func (*SecretKey) SerializeToHexStr ¶
func (*SecretKey) SetLittleEndian ¶
func (*SecretKey) SetLittleEndianMod ¶
type Signature ¶
type Signature struct {
// contains filtered or unexported fields
}
func (*Signature) AggregateSignature ¶
func (*Signature) Deserialize ¶
func (*Signature) FastAggregateVerify ¶
func (*Signature) IsValidOrder ¶
func (*Signature) SerializeToHexStr ¶
func (*Signature) VerifyAggregateHashes ¶
Click to show internal directories.
Click to hide internal directories.