This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* extended Crypto API with CL * added verifier functionality * implemented issuer/prover/verifier methods for tinkcrypto * added stubs for CL for remotecrypto and non-ursa tinkcrypto build * added unit tests Signed-off-by: konstantin.goncharov <[email protected]>
- Loading branch information
konstantin.goncharov
committed
Jul 13, 2022
1 parent
d5d31b7
commit 80abd8f
Showing
24 changed files
with
1,204 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
Copyright Avast Software. All Rights Reserved. | ||
SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package cl | ||
|
||
type CredentialDefinition struct { | ||
CredPubKey []byte | ||
CredDefCorrectnessProof []byte | ||
Attrs []string | ||
} | ||
|
||
type CredentialOffer struct { | ||
Nonce string | ||
} | ||
|
||
type CredentialRequest struct { | ||
BlindedCredentialSecrets *BlindedCredentialSecrets | ||
Nonce string | ||
ProverId string | ||
} | ||
|
||
type BlindedCredentialSecrets struct { | ||
Handle []byte | ||
BlindingFactor []byte | ||
CorrectnessProof []byte | ||
} | ||
|
||
type Credential struct { | ||
Signature []byte | ||
Values map[string]interface{} | ||
SigProof []byte | ||
} | ||
|
||
type PresentationRequest struct { | ||
Items []*PresentationRequestItem | ||
Nonce string | ||
} | ||
|
||
type PresentationRequestItem struct { | ||
RevealedAttrs []string | ||
Predicates []*Predicate | ||
} | ||
|
||
type Predicate struct { | ||
Attr string | ||
PType string | ||
Value int32 | ||
} | ||
|
||
type Proof struct { | ||
Proof []byte | ||
} |
Oops, something went wrong.