Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
8ac6f05
refactor: using slices.Contains to simplify the code
zhoufanjin Jan 10, 2025
ac21f3b
Sync develop with main (#929)
volodymyr-basiuk Aug 15, 2025
3ba3079
fix: Rename protocol message threadid field to thid
x1m3 Aug 18, 2025
5cd9dcf
Merge pull request #931 from 0xPolygonID/fix-thread-id-field
x1m3 Aug 18, 2025
f680653
add support of Solana payments (#926)
volodymyr-basiuk Aug 19, 2025
8428dc4
ed25519 remove size verification of signature (#933)
volodymyr-basiuk Aug 19, 2025
8af0103
fix VerificationMethod for Solana SPL (use chain ref not chain id) (#…
volodymyr-basiuk Aug 19, 2025
9aedb64
Fix resolvers_settings_sample.yaml indentation
amonsosanz Aug 29, 2025
693ebf6
Fix husky/pre-commit script
amonsosanz Aug 29, 2025
d44f2f2
Fix vulnerabilities
amonsosanz Aug 29, 2025
f424b8d
Fix antd tooltip warnings
amonsosanz Aug 29, 2025
db96b93
Serialize empty required objects as empty objects
amonsosanz Aug 29, 2025
7936a3b
Convert antd form null values to undefined while parsing
amonsosanz Aug 29, 2025
2fcd888
Merge pull request #935 from 0xPolygonID/serialize-empty-required-obj…
amonsosanz Sep 2, 2025
2b9bf29
add AuthV3 support (#936)
volodymyr-basiuk Sep 4, 2025
83a3ee9
fix ETHResolver initialization (#937)
volodymyr-basiuk Sep 5, 2025
40b323d
chore: add encrypted key
martinsaporiti Oct 13, 2025
dc73c47
chore: update lib and add tests
martinsaporiti Oct 13, 2025
f0fe1e6
chore: update docker file
martinsaporiti Oct 13, 2025
f91994d
chore: updates after code review
martinsaporiti Oct 13, 2025
2af20f5
chore: fix api
martinsaporiti Oct 13, 2025
c6c7fa1
chore: improve code
martinsaporiti Oct 13, 2025
260a125
chore: add tests
martinsaporiti Oct 14, 2025
4d6f26c
chore: add more tests
martinsaporiti Oct 14, 2025
117d7bb
chore: add more tests
martinsaporiti Oct 14, 2025
6fd5956
chore: change to jwe provider
martinsaporiti Oct 15, 2025
2462056
dump iden3comm lib; remove claim param for encryptCredential function…
ilya-korotya Oct 15, 2025
d7435e1
Merge pull request #938 from 0xPolygonID/add_encrypted_claims
martinsaporiti Oct 15, 2025
017dfdf
chore: update dockerfile
martinsaporiti Oct 15, 2025
56491b8
Merge pull request #939 from 0xPolygonID/update_dockerfile
martinsaporiti Oct 15, 2025
4831f23
update iden3comm to v2.11.8
ilya-korotya Oct 15, 2025
28094a0
Merge pull request #940 from 0xPolygonID/chore/update-iden3comm-lib-t…
ilya-korotya Oct 15, 2025
7319d3a
Bug fixing pipeline env vars for BSH environment
avalverdero Oct 16, 2025
0968e38
Bug fixing pipeline if clauses to BSH environment
avalverdero Oct 16, 2025
f86ec7f
fix: schema type
martinsaporiti Oct 17, 2025
afb84d8
fix: order
martinsaporiti Oct 17, 2025
f9610c4
chore: add more fields
martinsaporiti Oct 20, 2025
3ca074d
fix: update spec
martinsaporiti Oct 20, 2025
f234540
chore: update protocol message response type for encrypted messages
martinsaporiti Oct 20, 2025
85cf7f7
Merge pull request #942 from 0xPolygonID/fix_schema_type
martinsaporiti Oct 20, 2025
24f6208
Add support for encrypted credentials
amonsosanz Oct 20, 2025
41b26f9
Destructure credentialStatus
amonsosanz Nov 10, 2025
3e24565
Merge pull request #943 from 0xPolygonID/add-support-for-encrypted-cr…
amonsosanz Nov 20, 2025
927d193
add filters by schemaType and schemaURL
ilya-korotya Nov 21, 2025
2368853
change parial match to begins with match
ilya-korotya Nov 21, 2025
19edaba
Merge pull request #944 from 0xPolygonID/feature/add-filters-to-get-c…
ilya-korotya Nov 21, 2025
9d58754
Merge remote-tracking branch 'origin/main' into fix_conflicts_24_nov_…
x1m3 Nov 24, 2025
a3492fa
fix: merge conflict
x1m3 Nov 24, 2025
63a6a75
Merge pull request #946 from 0xPolygonID/fix_conflicts_24_nov_2025
x1m3 Nov 24, 2025
a3c69ac
Merge pull request #887 from zhoufanjin/develop
x1m3 Nov 27, 2025
9f68275
fix: Revert wrong code change that was added by mistake.
x1m3 Nov 27, 2025
bc166dc
Merge pull request #950 from 0xPolygonID/fix_wrong_change
x1m3 Nov 27, 2025
d4e2c1c
add ERC-20 Test token for payments on Amoy (#949)
volodymyr-basiuk Nov 27, 2025
7a6e9d7
fix: Update libraries
x1m3 Dec 2, 2025
ac4c95e
chore: Upgrade go-iden3-auth to v.2.7.7
x1m3 Dec 2, 2025
0b3bee2
Add Base and BNB payment options to the settings (#953)
volodymyr-basiuk Dec 2, 2025
ac9db65
Merge pull request #952 from 0xPolygonID/update_go_deps
x1m3 Dec 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env-issuer.sample
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ ISSUER_UNIVERSAL_LINKS_BASE_URL=https://wallet.privado.id
ISSUER_PAYMENTS_SETTINGS_PATH=./payment_settings.yaml

#if you want, you can specify the content of the payments configuration encoded in base64. In this case ISSUER_PAYMENTS_SETTINGS_PATH have to be empty
ISSUER_PAYMENTS_SETTINGS_FILE=
ISSUER_PAYMENTS_SETTINGS_FILE=
12 changes: 5 additions & 7 deletions .github/workflows/deploy_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ on:
env:
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
ECR_REPOSITORY: ${{vars.ECR_REPOSITORY}}
AWS_ACCOUNT_ID_BSH: ${{ secrets.AWS_ACCOUNT_ID_BSH }}
ECR_REPOSITORY_BSH: ${{vars.ECR_REPOSITORY_BSH}}

jobs:
build-backend:
Expand Down Expand Up @@ -69,7 +67,7 @@ jobs:
- name: Tag and push image
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: ${{ env.ECR_REPOSITORY }}
ECR_REPOSITORY: ${{ vars.ECR_REPOSITORY }}
IMAGE_TAG: ${{ steps.version.outputs.VERSION }}
run: |
docker tag issuer/api:${{ env.IMAGE_TAG }} ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}
Expand All @@ -80,22 +78,22 @@ jobs:

- name: Configure AWS credentials Billions SH
uses: aws-actions/configure-aws-credentials@v1-node16
if: github.ref == 'refs/heads/main'
if: github.event.workflow_run.head_branch == 'main'
with:
aws-region: ${{ env.AWS_DEFAULT_REGION }}
role-to-assume: arn:aws:iam::${{ env.AWS_ACCOUNT_ID_BSH }}:role/BillionsActionsRole
role-session-name: GitHubActionsSession

- name: Login to Amazon ECR Billions SH
uses: aws-actions/amazon-ecr-login@v1
if: github.ref == 'refs/heads/main'
if: github.event.workflow_run.head_branch == 'main'
id: login-ecr-bsh

- name: Tag and push image Billions SH
if: github.ref == 'refs/heads/main'
if: github.event.workflow_run.head_branch == 'main'
env:
ECR_REGISTRY: ${{ steps.login-ecr-bsh.outputs.registry }}
ECR_REPOSITORY: ${{ env.ECR_REPOSITORY_BSH }}
ECR_REPOSITORY: ${{ vars.ECR_REPOSITORY_BSH }}
IMAGE_TAG: ${{ steps.version.outputs.VERSION }}
run: |
docker tag issuer/api:${{ env.IMAGE_TAG }} ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/deploy_ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ on:
env:
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
ECR_REPOSITORY: ${{vars.ECR_REPOSITORY_UI}}
AWS_ACCOUNT_ID_BSH: ${{ secrets.AWS_ACCOUNT_ID_BSH }}
ECR_REPOSITORY_BSH: ${{vars.ECR_REPOSITORY_UI_BSH}}

jobs:
deploy:
Expand Down Expand Up @@ -56,7 +54,7 @@ jobs:
- name: Tag and push image
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: ${{ env.ECR_REPOSITORY }}
ECR_REPOSITORY: ${{ vars.ECR_REPOSITORY_UI }}
IMAGE_TAG: ${{ steps.version.outputs.VERSION }}
run: |
docker tag polygonid/issuernode_ui:${{ env.IMAGE_TAG }} ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}
Expand All @@ -82,7 +80,7 @@ jobs:
if: github.ref == 'refs/heads/main'
env:
ECR_REGISTRY: ${{ steps.login-ecr-bsh.outputs.registry }}
ECR_REPOSITORY: ${{ env.ECR_REPOSITORY_BSH }}
ECR_REPOSITORY: ${{ vars.ECR_REPOSITORY_UI_BSH }}
IMAGE_TAG: ${{ steps.version.outputs.VERSION }}
run: |
docker tag polygonid/issuernode_ui:${{ env.IMAGE_TAG }} ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ linters-settings:
- name: argument-limit
severity: warning
disabled: false
arguments: [ 16 ]
arguments: [ 17 ]
- name: exported
severity: warning
disabled: false
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22 AS base
FROM golang:1.24 AS base
ARG VERSION
WORKDIR /service
ENV GOBIN=/service/bin
Expand Down
78 changes: 77 additions & 1 deletion api/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,18 @@ paths:
schema:
type: string
example: did:polygonid:polygon:amoy:2qFpPHotk6oyaX1fcrpQFT4BMnmg8YszUwxYtaoGoe
- in: query
name: schemaType
schema:
type: string
example: UniquenessCredential
description: Filter credentials by schema type (partial match)
- in: query
name: schemaUrl
schema:
type: string
example: ipfs://QmYpsAHYPrNNaNc2o9SAMrPknSAYYAbse4hYxQgMP64Tvj
description: Filter credentials by schema URL (begins with match)
- in: query
name: status
schema:
Expand Down Expand Up @@ -2553,6 +2565,22 @@ components:
x-omitempty: true
example: "Iden3ReverseSparseMerkleTreeProof"
enum: [ Iden3commRevocationStatusV1.0, Iden3ReverseSparseMerkleTreeProof, Iden3OnchainSparseMerkleTreeProof2023 ]
encryptionKey:
type: object
x-omitempty: true
example:
EncryptionKey:
summary: Encryption Key
value:
alg: "ECDH-ES+A256KW"
crv: "P-256"
kid: "tu-kid"
kty: "EC"
use: "enc"
x: "8UfTxPvmMFAPuqwtxaRWrWmihC_7uYF2rEnxa4lLQ_s"
y: "M4PFcNXKyyRJ3zNPg19FlB6O0Tlbqs8euRcflpbDtcE"


example:
credentialSchema: "https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json/KYCAgeCredential-v3.json"
type: "KYCAgeCredential"
Expand Down Expand Up @@ -2599,14 +2627,58 @@ components:
connection:
$ref: '#/components/schemas/AuthenticationConnection'


EncryptedVC:
type: object
required:
- id
- data
- proof
- context
- type
- issuanceDate
- credentialStatus
properties:
id:
type: string
x-omitempty: false
data:
type: object
x-go-type: protocol.JWEJSONEncryption
x-go-type-import:
name: protocol
path: "github.com/iden3/iden3comm/v2/protocol"
proof:
type: object
x-go-type: verifiable.CredentialProofs
x-go-type-import:
name: verifiable
path: "github.com/iden3/go-schema-processor/v2/verifiable"
context:
type: string
example: "https://www.w3.org/2018/credentials/examples/v1"
type:
type: string
example: "KYCAgeCredential"
expirationDate:
$ref: '#/components/schemas/TimeUTC'
issuanceDate:
$ref: '#/components/schemas/TimeUTC'
credentialStatus:
type: object
x-go-type: verifiable.CredentialStatus
x-go-type-import:
name: verifiable
path: "github.com/iden3/go-schema-processor/v2/verifiable"


Credential:
type: object
required:
- id
- proofTypes
- revoked
- schemaHash
- vc
properties:
id:
type: string
Expand All @@ -2628,6 +2700,9 @@ components:
x-go-type-import:
name: verifiable
path: "github.com/iden3/go-schema-processor/v2/verifiable"
encryptedVC:
$ref: '#/components/schemas/EncryptedVC'


AuthenticationResponse:
type: object
Expand Down Expand Up @@ -2738,6 +2813,7 @@ components:
example: "did:iden3:polygon:amoy:2qVSDLNYs2s5HDMTyb4Su67ZvrZ..."
description: If a User DID is provided, the payment will be verified for the specified User DID.


BasicMessage:
type: object
required:
Expand Down
5 changes: 2 additions & 3 deletions cmd/platform/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
chiMiddleware "github.com/go-chi/chi/v5/middleware"
"github.com/go-chi/cors"
auth "github.com/iden3/go-iden3-auth/v2"
authLoaders "github.com/iden3/go-iden3-auth/v2/loaders"
"github.com/iden3/go-iden3-auth/v2/loaders"
"github.com/iden3/iden3comm/v2"
"github.com/iden3/iden3comm/v2/packers"
iden3commProtocol "github.com/iden3/iden3comm/v2/protocol"
Expand Down Expand Up @@ -142,8 +142,7 @@ func main() {
return
}

verificationKeyLoader := &authLoaders.FSKeyLoader{Dir: cfg.Circuit.Path + "/authV2"}
verifier, err := auth.NewVerifier(verificationKeyLoader, networkResolver.GetStateResolvers(), auth.WithDIDResolver(universalDIDResolverHandler))
verifier, err := auth.NewVerifier(loaders.NewEmbeddedKeyLoader(), networkResolver.GetStateResolvers(), auth.WithDIDResolver(universalDIDResolverHandler))
if err != nil {
log.Error(ctx, "failed init verifier", "err", err)
return
Expand Down
Loading
Loading