Documentation ¶
Overview ¶
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
Index ¶
- func NewRandOrPanic() *amcl.RAND
- type Big
- type CredRequest
- type Credential
- type Ecp
- type Issuer
- type IssuerPublicKey
- type IssuerSecretKey
- type NymSignatureScheme
- type Revocation
- type SignatureScheme
- type User
- func (u *User) MakeNym(sk handlers.Big, ipk handlers.IssuerPublicKey) (r1 handlers.Ecp, r2 handlers.Big, err error)
- func (u *User) NewKey() (res handlers.Big, err error)
- func (*User) NewKeyFromBytes(raw []byte) (res handlers.Big, err error)
- func (*User) NewPublicNymFromBytes(raw []byte) (r handlers.Ecp, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRandOrPanic ¶
Types ¶
type CredRequest ¶
func (*CredRequest) Sign ¶
func (cr *CredRequest) Sign(sk handlers.Big, ipk handlers.IssuerPublicKey, nonce []byte) (res []byte, err error)
func (*CredRequest) Verify ¶
func (*CredRequest) Verify(credentialRequest []byte, ipk handlers.IssuerPublicKey, nonce []byte) (err error)
type Credential ¶
func (*Credential) Sign ¶
func (c *Credential) Sign(key handlers.IssuerSecretKey, credentialRequest []byte, attributes []bccsp.IdemixAttribute) (res []byte, err error)
func (*Credential) Verify ¶
func (*Credential) Verify(sk handlers.Big, ipk handlers.IssuerPublicKey, credential []byte, attributes []bccsp.IdemixAttribute) (err error)
type Issuer ¶
func (*Issuer) NewKey ¶
func (i *Issuer) NewKey(attributeNames []string) (res handlers.IssuerSecretKey, err error)
func (*Issuer) NewPublicKeyFromBytes ¶
type IssuerPublicKey ¶
type IssuerPublicKey struct {
PK *cryptolib.IssuerPublicKey
}
func (*IssuerPublicKey) Bytes ¶
func (o *IssuerPublicKey) Bytes() ([]byte, error)
func (*IssuerPublicKey) Hash ¶
func (o *IssuerPublicKey) Hash() []byte
type IssuerSecretKey ¶
func (*IssuerSecretKey) Bytes ¶
func (o *IssuerSecretKey) Bytes() ([]byte, error)
func (*IssuerSecretKey) Public ¶
func (o *IssuerSecretKey) Public() handlers.IssuerPublicKey
type NymSignatureScheme ¶
func (*NymSignatureScheme) Verify ¶
func (*NymSignatureScheme) Verify(ipk handlers.IssuerPublicKey, Nym handlers.Ecp, signature, digest []byte) (err error)
type Revocation ¶
type Revocation struct { }
func (*Revocation) NewKey ¶
func (*Revocation) NewKey() (*ecdsa.PrivateKey, error)
func (*Revocation) Sign ¶
func (*Revocation) Sign(key *ecdsa.PrivateKey, unrevokedHandles [][]byte, epoch int, alg bccsp.RevocationAlgorithm) (res []byte, err error)
func (*Revocation) Verify ¶
func (*Revocation) Verify(pk *ecdsa.PublicKey, criRaw []byte, epoch int, alg bccsp.RevocationAlgorithm) (err error)
type SignatureScheme ¶
func (*SignatureScheme) Verify ¶
func (*SignatureScheme) Verify(ipk handlers.IssuerPublicKey, signature, digest []byte, attributes []bccsp.IdemixAttribute, rhIndex int, revocationPublicKey *ecdsa.PublicKey, epoch int) (err error)