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 New(keyStore bccsp.KeyStore) (*csp, error)
- func NewIssuerPublicKey(pk IssuerPublicKey) *issuerPublicKey
- func NewIssuerSecretKey(sk IssuerSecretKey, exportable bool) *issuerSecretKey
- func NewNymPublicKey(pk Ecp) *nymPublicKey
- func NewNymSecretKey(sk Big, pk Ecp, exportable bool) (*nymSecretKey, error)
- func NewRevocationPublicKey(pubKey *ecdsa.PublicKey) *revocationPublicKey
- func NewRevocationSecretKey(sk *ecdsa.PrivateKey, exportable bool) *revocationSecretKey
- func NewUserSecretKey(sk Big, exportable bool) *userSecretKey
- type Big
- type CredRequest
- type Credential
- type CredentialRequestSigner
- type CredentialRequestVerifier
- type CredentialSigner
- type CredentialVerifier
- type CriSigner
- type CriVerifier
- type Ecp
- type Issuer
- type IssuerKeyGen
- type IssuerPublicKey
- type IssuerSecretKey
- type NymKeyDerivation
- type NymSignatureScheme
- type NymSigner
- type NymVerifier
- type Revocation
- type RevocationKeyGen
- type SignatureScheme
- type Signer
- type User
- type UserKeyGen
- type Verifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIssuerPublicKey ¶
func NewIssuerPublicKey(pk IssuerPublicKey) *issuerPublicKey
func NewIssuerSecretKey ¶
func NewIssuerSecretKey(sk IssuerSecretKey, exportable bool) *issuerSecretKey
func NewNymPublicKey ¶
func NewNymPublicKey(pk Ecp) *nymPublicKey
func NewRevocationPublicKey ¶
func NewRevocationSecretKey ¶
func NewRevocationSecretKey(sk *ecdsa.PrivateKey, exportable bool) *revocationSecretKey
func NewUserSecretKey ¶
Types ¶
type CredRequest ¶
type CredRequest interface { Sign(sk Big, ipk IssuerPublicKey) ([]byte, error) Verify(credRequest []byte, ipk IssuerPublicKey) error }
type Credential ¶
type Credential interface { Sign(key IssuerSecretKey, credentialRequest []byte, attributes []bccsp.IdemixAttribute) ([]byte, error) Verify(sk Big, ipk IssuerPublicKey, credential []byte, attributes []bccsp.IdemixAttribute) error }
type CredentialRequestSigner ¶
type CredentialRequestSigner struct {
CredRequest CredRequest
}
func (*CredentialRequestSigner) Sign ¶
func (c *CredentialRequestSigner) Sign(k bccsp.Key, digest []byte, opts bccsp.SignerOpts) ([]byte, error)
type CredentialRequestVerifier ¶
type CredentialRequestVerifier struct {
CredRequest CredRequest
}
func (*CredentialRequestVerifier) Verify ¶
func (c *CredentialRequestVerifier) Verify(k bccsp.Key, signature, digest []byte, opts bccsp.SignerOpts) (bool, error)
type CredentialSigner ¶
type CredentialSigner struct {
Credential Credential
}
func (*CredentialSigner) Sign ¶
func (s *CredentialSigner) Sign(k bccsp.Key, digest []byte, opts bccsp.SignerOpts) (signature []byte, err error)
type CredentialVerifier ¶
type CredentialVerifier struct {
Credential Credential
}
func (*CredentialVerifier) Verify ¶
func (v *CredentialVerifier) Verify(k bccsp.Key, signature, digest []byte, opts bccsp.SignerOpts) (valid bool, err error)
type CriSigner ¶
type CriSigner struct {
Revocation Revocation
}
type CriVerifier ¶
type CriVerifier struct {
Revocation Revocation
}
func (*CriVerifier) Verify ¶
func (v *CriVerifier) Verify(k bccsp.Key, signature, digest []byte, opts bccsp.SignerOpts) (bool, error)
type Issuer ¶
type Issuer interface {
NewKey(AttributeNames []string) (IssuerSecretKey, error)
}
type IssuerKeyGen ¶
func (*IssuerKeyGen) KeyGen ¶
func (g *IssuerKeyGen) KeyGen(opts bccsp.KeyGenOpts) (k bccsp.Key, err error)
type IssuerPublicKey ¶
type IssuerSecretKey ¶
type IssuerSecretKey interface { Bytes() ([]byte, error) Public() IssuerPublicKey }
type NymKeyDerivation ¶
func (*NymKeyDerivation) KeyDeriv ¶
func (kd *NymKeyDerivation) KeyDeriv(k bccsp.Key, opts bccsp.KeyDerivOpts) (dk bccsp.Key, err error)
type NymSignatureScheme ¶
type NymSigner ¶
type NymSigner struct {
NymSignatureScheme NymSignatureScheme
}
type NymVerifier ¶
type NymVerifier struct {
NymSignatureScheme NymSignatureScheme
}
func (*NymVerifier) Verify ¶
func (v *NymVerifier) Verify(k bccsp.Key, signature, digest []byte, opts bccsp.SignerOpts) (bool, error)
type Revocation ¶
type Revocation interface { NewKey() (*ecdsa.PrivateKey, error) Sign(key *ecdsa.PrivateKey, unrevokedHandles [][]byte, epoch int, alg bccsp.RevocationAlgorithm) ([]byte, error) Verify(pk *ecdsa.PublicKey, cri []byte, epoch int, alg bccsp.RevocationAlgorithm) error }
type RevocationKeyGen ¶
type RevocationKeyGen struct { Exportable bool Revocation Revocation }
func (*RevocationKeyGen) KeyGen ¶
func (g *RevocationKeyGen) KeyGen(opts bccsp.KeyGenOpts) (bccsp.Key, error)
type SignatureScheme ¶
type SignatureScheme interface { Sign(cred []byte, sk Big, Nym Ecp, RNym Big, ipk IssuerPublicKey, attributes []bccsp.IdemixAttribute, msg []byte, rhIndex int, cri []byte) ([]byte, error) Verify(ipk IssuerPublicKey, signature, msg []byte, attributes []bccsp.IdemixAttribute, rhIndex int, revocationPublicKey *ecdsa.PublicKey, epoch int) error }
type Signer ¶
type Signer struct {
SignatureScheme SignatureScheme
}
type UserKeyGen ¶
func (*UserKeyGen) KeyGen ¶
func (g *UserKeyGen) KeyGen(opts bccsp.KeyGenOpts) (bccsp.Key, error)