Skip to content

Commit

Permalink
Add owner as FieldToReveal
Browse files Browse the repository at this point in the history
  • Loading branch information
robknight committed Oct 29, 2024
1 parent 2e0f5cb commit 04efd9b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
7 changes: 7 additions & 0 deletions examples/test-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# test-app

## 1.0.22

### Patch Changes

- Updated dependencies
- @parcnet-js/ticket-spec@1.1.8

## 1.0.21

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/test-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "test-app",
"version": "1.0.21",
"version": "1.0.22",
"private": true,
"type": "module",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions packages/ticket-spec/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @parcnet-js/ticket-spec

## 1.1.8

### Patch Changes

- Support owner as 'FieldToReveal' and allow other unknown entries to be revealed

## 1.1.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ticket-spec/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@parcnet-js/ticket-spec",
"version": "1.1.7",
"version": "1.1.8",
"license": "GPL-3.0-or-later",
"type": "module",
"main": "dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/ticket-spec/src/ticket_proof_request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ interface FieldsToReveal {
ticketSecret: boolean;
timestampConsumed: boolean;
timestampSigned: boolean;
attendeeSemaphoreId: boolean;
isConsumed: boolean;
isRevoked: boolean;
ticketCategory: boolean;
attendeeName: boolean;
attendeeEmail: boolean;
owner: boolean;
}

/**
Expand All @@ -49,7 +49,7 @@ export type TicketClassificationTuples =

export interface TicketProofRequest {
classificationTuples: TicketClassificationTuples;
fieldsToReveal: Partial<FieldsToReveal>;
fieldsToReveal: Partial<FieldsToReveal> & Record<string, boolean>;
externalNullifier?: PODValue;
watermark?: PODValue;
}
Expand Down

0 comments on commit 04efd9b

Please sign in to comment.