Documentation
¶
Index ¶
- type CosiSignature
- func (c *CosiSignature) AggregatePublicKey(publics []*Key) (*Key, error)
- func (c *CosiSignature) AggregateResponse(publics []*Key, responses map[int]*[32]byte, message []byte, strict bool) error
- func (c *CosiSignature) Challenge(publics []*Key, message []byte) ([32]byte, error)
- func (c *CosiSignature) FullVerify(publics []*Key, threshold int, message []byte) error
- func (c *CosiSignature) Keys() []int
- func (c *CosiSignature) Mark(i int) error
- func (c CosiSignature) MarshalJSON() ([]byte, error)
- func (c *CosiSignature) Response(privateKey, random *Key, publics []*Key, message []byte) ([32]byte, error)
- func (c CosiSignature) String() string
- func (c *CosiSignature) ThresholdVerify(threshold int) bool
- func (c *CosiSignature) UnmarshalJSON(b []byte) error
- func (c *CosiSignature) VerifyResponse(publics []*Key, signer int, s *[32]byte, message []byte) error
- type Hash
- type Key
- func CosiCommit(randReader io.Reader) *Key
- func DeriveGhostPrivateKey(R, a, b *Key, outputIndex uint64) *Key
- func DeriveGhostPublicKey(r, A, B *Key, outputIndex uint64) *Key
- func KeyAddPub(pub1, pub2 *Key) *Key
- func KeyFromString(s string) (Key, error)
- func KeyMultPubPriv(pub, priv *Key) *Key
- func NewKeyFromSeed(seed []byte) Key
- func ViewGhostOutputKey(P, a, R *Key, outputIndex uint64) *Key
- func (k Key) CheckKey() bool
- func (k Key) CheckScalar() bool
- func (k Key) DeterministicHashDerive() Key
- func (k Key) HasValue() bool
- func (k Key) HashScalar() *[32]byte
- func (k Key) MarshalJSON() ([]byte, error)
- func (k *Key) MultScalar(outputIndex uint64) *Key
- func (k Key) Public() Key
- func (privateKey *Key) Sign(message []byte) Signature
- func (k Key) String() string
- func (k *Key) UnmarshalJSON(b []byte) error
- func (publicKey *Key) Verify(message []byte, sig Signature) bool
- func (publicKey *Key) VerifyWithChallenge(message []byte, sig Signature, hReduced [32]byte) bool
- type Signature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CosiSignature ¶ added in v0.5.0
type CosiSignature struct { Signature Signature Mask uint64 // contains filtered or unexported fields }
func CosiAggregateCommitment ¶ added in v0.5.0
func CosiAggregateCommitment(randoms map[int]*Key) (*CosiSignature, error)
func (*CosiSignature) AggregatePublicKey ¶ added in v0.5.0
func (c *CosiSignature) AggregatePublicKey(publics []*Key) (*Key, error)
func (*CosiSignature) AggregateResponse ¶ added in v0.5.0
func (*CosiSignature) Challenge ¶ added in v0.5.0
func (c *CosiSignature) Challenge(publics []*Key, message []byte) ([32]byte, error)
func (*CosiSignature) FullVerify ¶ added in v0.5.0
func (c *CosiSignature) FullVerify(publics []*Key, threshold int, message []byte) error
func (*CosiSignature) Keys ¶ added in v0.5.0
func (c *CosiSignature) Keys() []int
func (*CosiSignature) Mark ¶ added in v0.5.0
func (c *CosiSignature) Mark(i int) error
func (CosiSignature) MarshalJSON ¶ added in v0.5.0
func (c CosiSignature) MarshalJSON() ([]byte, error)
func (CosiSignature) String ¶ added in v0.5.0
func (c CosiSignature) String() string
func (*CosiSignature) ThresholdVerify ¶ added in v0.5.0
func (c *CosiSignature) ThresholdVerify(threshold int) bool
func (*CosiSignature) UnmarshalJSON ¶ added in v0.5.0
func (c *CosiSignature) UnmarshalJSON(b []byte) error
func (*CosiSignature) VerifyResponse ¶ added in v0.5.0
type Hash ¶
type Hash [32]byte
func HashFromString ¶
func (Hash) ForNetwork ¶
func (Hash) MarshalJSON ¶
func (*Hash) UnmarshalJSON ¶
type Key ¶
type Key [32]byte
func CosiCommit ¶ added in v0.5.0
func DeriveGhostPrivateKey ¶
func DeriveGhostPublicKey ¶
func KeyFromString ¶ added in v0.5.10
func KeyMultPubPriv ¶ added in v0.5.0
func NewKeyFromSeed ¶
func ViewGhostOutputKey ¶
func (Key) CheckScalar ¶ added in v0.6.0
func (Key) DeterministicHashDerive ¶
func (Key) HashScalar ¶
func (Key) MarshalJSON ¶
func (*Key) MultScalar ¶
func (*Key) UnmarshalJSON ¶
type Signature ¶
type Signature [64]byte
func (Signature) MarshalJSON ¶
func (*Signature) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.