Documentation ¶
Index ¶
- type Blinding
- type Proof
- func (p *Proof) Create(token *Token, blindings []*Blinding, id, nonce []byte, rng io.Reader) error
- func (p Proof) MarshalBinary() ([]byte, error)
- func (p Proof) MarshalText() ([]byte, error)
- func (p Proof) Open(pk *PublicKey, id, nonce []byte) error
- func (p *Proof) UnmarshalBinary(in []byte) error
- func (p *Proof) UnmarshalText(in []byte) error
- type PublicKey
- func (p *PublicKey) FromSecretKey(sk *SecretKey)
- func (p PublicKey) MarshalBinary() ([]byte, error)
- func (p PublicKey) MarshalText() ([]byte, error)
- func (p *PublicKey) UnmarshalBinary(in []byte) error
- func (p *PublicKey) UnmarshalText(in []byte) error
- func (p *PublicKey) Verify(id []byte, t *Token) error
- type SecretKey
- type Token
- func (t *Token) ApplyBlinding(token *Token, b *Blinding) *Token
- func (t *Token) Create(sk *SecretKey, id []byte) error
- func (t Token) MarshalBinary() ([]byte, error)
- func (t Token) MarshalText() ([]byte, error)
- func (t *Token) RemoveBlinding(token *Token, b *Blinding) *Token
- func (t *Token) UnmarshalBinary(data []byte) error
- func (t *Token) UnmarshalText(in []byte) error
- func (t *Token) Verify(pk *PublicKey, id []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blinding ¶
type Blinding struct {
Value *curves.PointBls12381G1
}
func NewBlinding ¶
func (Blinding) MarshalBinary ¶
func (Blinding) MarshalText ¶
func (*Blinding) UnmarshalBinary ¶
func (*Blinding) UnmarshalText ¶
type Proof ¶
type Proof struct {
UTick, Z *curves.PointBls12381G1
}
func (Proof) MarshalBinary ¶
func (Proof) MarshalText ¶
func (*Proof) UnmarshalBinary ¶
func (*Proof) UnmarshalText ¶
type PublicKey ¶
type PublicKey struct { W *curves.PointBls12381G2 X *curves.PointBls12381G2 Y *curves.PointBls12381G2 }
func (*PublicKey) FromSecretKey ¶
func (PublicKey) MarshalBinary ¶
func (PublicKey) MarshalText ¶
func (*PublicKey) UnmarshalBinary ¶
func (*PublicKey) UnmarshalText ¶
type SecretKey ¶
type SecretKey struct { W *curves.ScalarBls12381 X *curves.ScalarBls12381 Y *curves.ScalarBls12381 }
func HashSecretKey ¶
func (SecretKey) MarshalBinary ¶
func (SecretKey) MarshalText ¶
func (*SecretKey) UnmarshalBinary ¶
func (*SecretKey) UnmarshalText ¶
type Token ¶
type Token struct {
Value *curves.PointBls12381G1
}
func (Token) MarshalBinary ¶
func (Token) MarshalText ¶
func (*Token) UnmarshalBinary ¶
func (*Token) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.