Skip to content

Commit

Permalink
Revert "Add SHA256withRSA-PSS pair. Add SHA384withECDSA pair. Overhau…
Browse files Browse the repository at this point in the history
…l hashing and signature algorithms determination logic"

This reverts commit 42a1717.
  • Loading branch information
J3imip committed Nov 28, 2024
1 parent 42a1717 commit b476fe2
Show file tree
Hide file tree
Showing 46 changed files with 1,872 additions and 4,600 deletions.
16 changes: 15 additions & 1 deletion config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
vault:
address: "http://127.0.0.1:8200"
mount_path: "secret_data"

network:
eth_rpc:
state_contract:

verifier:
verification_keys_paths:
sha1: "./sha1_verification_key.json"
Expand All @@ -8,12 +16,18 @@ verifier:
multi_acc_max_limit: 30
registration_timeout: 1h

issuer:
base_url: "http://localhost:3002/v1"
did: ""
claim_type: "VotingCredential"
credential_schema: "https://bafybeibbniic63etdbcn5rs5ir5bhelym6ogv46afj35keatzhn2eqnioi.ipfs.w3s.link/VotingCredential.json"

log:
level: debug
disable_sentry: true

db:
url: postgres://ilr:ilr@localhost:5432/ilr?sslmode=disable
url: postgres://voting:voting@localhost:35432/voting?sslmode=disable

listener:
addr: :8000
Expand Down
16 changes: 16 additions & 0 deletions docs/spec/components/schemas/Claim.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
allOf:
- $ref: '#/components/schemas/ClaimKey'
- type: object
required:
- attributes
properties:
attributes:
type: object
required:
- claim_id
- issuer_did
properties:
claim_id:
type: string
issuer_did:
type: string
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ properties:
type:
type: string
enum:
- verify-sod
- claims
36 changes: 0 additions & 36 deletions docs/spec/components/schemas/DocumentSod.yaml

This file was deleted.

16 changes: 16 additions & 0 deletions docs/spec/components/schemas/GistData.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
allOf:
- $ref: '#/components/schemas/GistDataKey'
- type: object
required:
- attributes
properties:
attributes:
type: object
required:
- gist_proof
- gist_root
properties:
gist_proof:
$ref: '#/components/schemas/GistProof'
gist_root:
type: string
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ properties:
type:
type: string
enum:
- document-sod
- gist_datas
29 changes: 29 additions & 0 deletions docs/spec/components/schemas/GistProof.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
type: object
required:
- root
- existence
- siblings
- index
- value
- aux_existence
- aux_index
- aux_value
properties:
root:
type: string
existence:
type: boolean
siblings:
type: array
items:
type: string
index:
type: string
value:
type: string
aux_existence:
type: boolean
aux_index:
type: string
aux_value:
type: string
15 changes: 0 additions & 15 deletions docs/spec/components/schemas/VerifySod.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
post:
tags:
- Verify document SOD
summary: Verify document SOD
operationId: verifyDocumentSod
- Identity
summary: The identity creating
operationId: create-identity
requestBody:
content:
application/json:
Expand All @@ -13,7 +13,69 @@ post:
properties:
data:
type: object
$ref: '#/components/schemas/DocumentSod'
required:
- id
- document_sod
- zkproof
properties:
id:
type: string
document_sod:
type: object
required:
- signed_attributes
- algorithm
- signature
- pem_file
- encapsulated_content
properties:
signed_attributes:
type: string
algorithm:
type: string
signature:
type: string
pem_file:
type: string
encapsulated_content:
type: string
zkproof:
type: object
required:
- proof
- pub_signals
properties:
proof:
type: object
required:
- pi_a
- pi_b
- pi_c
- protocol
- curve
properties:
pi_a:
type: array
items:
type: string
pi_b:
type: array
items:
type: array
items:
type: string
pi_c:
type: array
items:
type: string
protocol:
type: string
curve:
type: string
pub_signals:
type: array
items:
type: string
responses:
'200':
description: Success
Expand All @@ -24,7 +86,7 @@ post:
properties:
data:
type: object
$ref: '#/components/schemas/VerifySod'
$ref: '#/components/schemas/Claim'
'500':
description: Internal Error
content:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
get:
tags:
- GIST
summary: The GIST data retrieving
operationId: gist-data
parameters:
- in: query
name: user_did
required: true
schema:
type: string
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
data:
type: object
$ref: '#/components/schemas/GistData'
'500':
description: Internal Error
content:
application/json:
schema:
$ref: '#/components/schemas/Errors'
'400':
description: Bad Request Error
content:
application/json:
schema:
$ref: '#/components/schemas/Errors'
Loading

0 comments on commit b476fe2

Please sign in to comment.