Skip to content

Commit

Permalink
update generating bjj sig proof
Browse files Browse the repository at this point in the history
  • Loading branch information
lukachi committed Oct 18, 2023
1 parent 7579113 commit 9ede678
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [0.6.0] - 2023-10-18
### Added
- `@rarimo/rarime`: expose transit state details on `createProof`
- `@rarimo/rarime`: expose transit state details on `createProof`, update `IssuerData` and `BJJSignatureProof2021` classes


## [0.5.0] - 2023-10-13
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/rarimo/rarime.git"
},
"source": {
"shasum": "pR0KjUF7d6aQPC3z9CvQsOV5lLFQx3ozd9QtuRdTG40=",
"shasum": "03Ap34TCoby1WB2nDQGyE3YY/KO34wr7jDhD0spYvsE=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/snap/src/helpers/model-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export class IssuerData {
mtp?: Proof;

credentialStatus?: CredentialStatus;

updateUrl!: string;
}

export class Iden3SparseMerkleTreeProof {
Expand All @@ -40,8 +42,6 @@ export class BJJSignatureProof2021 {
signature!: string;

coreClaim!: string;

issuerProofUpdateUrl!: string;
}

export class CircuitClaim {
Expand Down
3 changes: 2 additions & 1 deletion packages/snap/src/helpers/proof-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,11 @@ export const newCircuitClaimData = async (
const sigProof = getBJJSignature2021Proof(credential.proof!);

if (sigProof) {
console.log('sigProof', JSON.stringify(sigProof));
const decodedSignature = Hex.decodeString(sigProof.signature);
const signature = Signature.newFromCompressed(decodedSignature);
const issuerAuthClaimIncMtp = await loadDataByUrl(
sigProof.issuerProofUpdateUrl,
sigProof.issuerData.updateUrl,
);
const rs: RevocationStatus = await getRevocationStatus(
sigProof.issuerData.credentialStatus!,
Expand Down

0 comments on commit 9ede678

Please sign in to comment.