Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signature / proof verification #84

Merged
merged 80 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
b710ce3
init ValidateProof func
volodymyr-basiuk Dec 20, 2023
13bb8d7
add VerifyPoseidon
volodymyr-basiuk Dec 21, 2023
4456b0f
check issuer state
volodymyr-basiuk Dec 21, 2023
79ab1b8
add get latest state
volodymyr-basiuk Dec 22, 2023
1e1c802
check genesis
volodymyr-basiuk Dec 22, 2023
b3c0e97
check RootFromProof
volodymyr-basiuk Dec 22, 2023
1594234
fix comment
volodymyr-basiuk Dec 22, 2023
d899488
rename validate method
volodymyr-basiuk Jan 3, 2024
9794791
fix linter
volodymyr-basiuk Jan 3, 2024
4037c49
add credential status validation for BJJ proof
volodymyr-basiuk Jan 3, 2024
3873dbb
move eth client to config (1 instanse for validate call)
volodymyr-basiuk Jan 4, 2024
71634ac
go 1.18
volodymyr-basiuk Jan 4, 2024
16f9b6a
fix unit tests
volodymyr-basiuk Jan 4, 2024
55033c9
go 1.18
volodymyr-basiuk Jan 4, 2024
a9bf675
fix unit tests (2)
volodymyr-basiuk Jan 4, 2024
3f3f732
go 1.20
volodymyr-basiuk Jan 4, 2024
13e5162
skip 1.18 container
volodymyr-basiuk Jan 4, 2024
197015c
fix linter
volodymyr-basiuk Jan 4, 2024
e8ef955
fix linter
volodymyr-basiuk Jan 4, 2024
03a2860
update to pilygonid resolver
volodymyr-basiuk Jan 4, 2024
709f76e
encapsulate did if state in params
volodymyr-basiuk Jan 4, 2024
134bb8f
fix linter
volodymyr-basiuk Jan 4, 2024
82a14fb
mock endpoints
volodymyr-basiuk Jan 5, 2024
0cc7ec3
revert CredentialStatus type changes
volodymyr-basiuk Jan 5, 2024
4644326
add credentialStatusResolver
volodymyr-basiuk Jan 5, 2024
4b8bdc6
upgrade core, reuse chainID
volodymyr-basiuk Jan 5, 2024
8050c0d
remove go-ether
volodymyr-basiuk Jan 5, 2024
d9faae3
Merge branch 'main' into feature/validate-cred-proof
volodymyr-basiuk Jan 5, 2024
59be582
fix lint & return go 1.18
volodymyr-basiuk Jan 5, 2024
d330714
return proof valid
volodymyr-basiuk Jan 8, 2024
02def93
add support to Iden3commRevocationStatusV1
volodymyr-basiuk Jan 8, 2024
f1b0a64
fix linter
volodymyr-basiuk Jan 8, 2024
0d9402c
split status check by separate files
volodymyr-basiuk Jan 8, 2024
fe71e5b
separate direct status
volodymyr-basiuk Jan 8, 2024
89ce10e
add agent status unit test
volodymyr-basiuk Jan 8, 2024
d8c4627
fix linter
volodymyr-basiuk Jan 8, 2024
22b8404
change err messages
volodymyr-basiuk Jan 10, 2024
8ae5447
rename CredStatusConfig to W3CProofVerificationOpt
volodymyr-basiuk Jan 10, 2024
c04426f
refactor with CredentialStatusResolverRegistry
volodymyr-basiuk Jan 11, 2024
df9c60d
refactor resolve & opts
volodymyr-basiuk Jan 12, 2024
ff4c896
return RevocationStatus from resolver (not MTPProof)
volodymyr-basiuk Jan 12, 2024
744c0ef
fix linter
volodymyr-basiuk Jan 12, 2024
588f5e2
cleanup
volodymyr-basiuk Jan 12, 2024
1ae002a
public config fields
volodymyr-basiuk Jan 12, 2024
ab00cca
move onChainRevStatus
volodymyr-basiuk Jan 12, 2024
8b3a33d
rm unused struct
volodymyr-basiuk Jan 12, 2024
b771bd5
upgrade merkletree-proof to v4
volodymyr-basiuk Jan 12, 2024
898b55d
cleanup resolvers & fix IssuerResolver
volodymyr-basiuk Jan 12, 2024
c6ce8e8
Merge branch 'main' into feature/validate-cred-proof
volodymyr-basiuk Jan 15, 2024
2a96369
resolve comments
volodymyr-basiuk Jan 16, 2024
b5c2484
fix linter
volodymyr-basiuk Jan 16, 2024
3558742
add customHTTPClient option
volodymyr-basiuk Jan 16, 2024
3261365
merge main
volodymyr-basiuk Jan 16, 2024
b397a79
tidy
volodymyr-basiuk Jan 16, 2024
6800894
move cred status opt to resolvers
volodymyr-basiuk Jan 16, 2024
433544d
fix linter
volodymyr-basiuk Jan 16, 2024
e990c8a
comment agent mock
volodymyr-basiuk Jan 16, 2024
63f6389
cleanup
volodymyr-basiuk Jan 16, 2024
14e3a4f
rm iden3comm dep
volodymyr-basiuk Jan 17, 2024
0ed1394
remove httpmock dep
volodymyr-basiuk Jan 17, 2024
24ac312
pass revNonce as param (remove bigIntByPath)
volodymyr-basiuk Jan 18, 2024
19dec47
add DIDResolver interface & HTTP implementation
volodymyr-basiuk Jan 18, 2024
93422f8
add CredentialStatusResolveOptions
volodymyr-basiuk Jan 18, 2024
f1f7487
pass resolveOptions
volodymyr-basiuk Jan 18, 2024
6363011
pvovide CredentialStatusResolveOpt...
volodymyr-basiuk Jan 19, 2024
2bfce5b
pass state in DIDResolver via DID Query
volodymyr-basiuk Jan 22, 2024
a5bd660
rm var
volodymyr-basiuk Jan 22, 2024
c7b98ff
Some nodes and POCs for proof validations
olomix Jan 22, 2024
95d551c
merged with upstream
olomix Jan 22, 2024
faabfa4
Rename error name to be consistent with other
olomix Jan 22, 2024
13758ee
make linters happy
olomix Jan 22, 2024
6de3e4b
temporary disable testing on go < 1.21
olomix Jan 22, 2024
7245bfd
Refactor proof validation
olomix Jan 23, 2024
c5028a2
Upgrade linter version and fix lint errors
olomix Jan 23, 2024
52e3f8d
Fix auth claim revocation status check
olomix Jan 24, 2024
b6f3210
Return setter/getter for issuer DID to go-schema-processor
olomix Jan 26, 2024
894ef55
Merge pull request #88 from iden3/feature/validate-cred-proof-2
volodymyr-basiuk Jan 26, 2024
c3c8022
resolve comments
volodymyr-basiuk Feb 2, 2024
8ded2e3
rewrite resp body err only if proof err nil
volodymyr-basiuk Feb 5, 2024
2ce69e4
limit reader check
volodymyr-basiuk Feb 6, 2024
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
1 change: 0 additions & 1 deletion .github/workflows/ci-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
strategy:
matrix:
containers:
- 1.18.10-bullseye
- 1.19.13-bullseye
- 1.20.9-bullseye
- 1.21.2-bullseye
Expand Down
40 changes: 36 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
module github.com/iden3/go-schema-processor/v2

go 1.18
go 1.19

require (
github.com/iden3/go-iden3-core/v2 v2.0.0-20230519124718-42b31ff46f37
github.com/iden3/contracts-abi/onchain-credential-status-resolver/go/abi v0.0.0-20230911113809-c58b7e7a69b0
github.com/iden3/go-iden3-core/v2 v2.0.0
github.com/iden3/go-iden3-crypto v0.0.15
github.com/iden3/go-merkletree-sql/v2 v2.0.4
github.com/ipfs/go-ipfs-api v0.6.0
Expand All @@ -16,21 +17,44 @@ require (
github.com/pquerna/cachecontrol v0.0.0-20180517163645-1555304b9b35
github.com/santhosh-tekuri/jsonschema/v5 v5.3.0
github.com/stretchr/testify v1.8.2
golang.org/x/crypto v0.7.0
golang.org/x/crypto v0.10.0
)

require (
vmidyllic marked this conversation as resolved.
Show resolved Hide resolved
github.com/ethereum/go-ethereum v1.12.2
volodymyr-basiuk marked this conversation as resolved.
Show resolved Hide resolved
github.com/iden3/contracts-abi/state/go/abi v1.0.1
github.com/iden3/go-circuits/v2 v2.0.0
github.com/iden3/merkletree-proof v0.0.3
)

require (
github.com/StackExchange/wmi v1.2.1 // indirect
github.com/benbjohnson/clock v1.3.5 // indirect
github.com/bits-and-blooms/bitset v1.10.0 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.2.0 // indirect
github.com/consensys/gnark-crypto v0.12.1 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.3 // indirect
github.com/crackcomm/go-gitignore v0.0.0-20170627025303-887ab5e44cc3 // indirect
github.com/crate-crypto/go-kzg-4844 v0.7.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dchest/blake512 v1.0.0 // indirect
github.com/deckarep/golang-set/v2 v2.1.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
github.com/ethereum/c-kzg-4844 v0.4.0 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/go-ole/go-ole v1.2.5 // indirect
github.com/go-stack/stack v1.8.1 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
github.com/holiman/uint256 v1.2.4 // indirect
github.com/ipfs/boxo v0.8.0 // indirect
github.com/ipfs/go-cid v0.4.1 // indirect
github.com/klauspost/cpuid/v2 v2.2.5 // indirect
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
github.com/libp2p/go-flow-metrics v0.1.0 // indirect
github.com/libp2p/go-libp2p v0.28.1 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/minio/sha256-simd v1.0.1 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mr-tron/base58 v1.2.0 // indirect
Expand All @@ -43,10 +67,18 @@ require (
github.com/multiformats/go-multistream v0.4.1 // indirect
github.com/multiformats/go-varint v0.0.7 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/tklauser/go-sysconf v0.3.12 // indirect
github.com/tklauser/numcpus v0.6.1 // indirect
github.com/whyrusleeping/tar-utils v0.0.0-20201201191210-20a61371de5b // indirect
golang.org/x/sys v0.8.0 // indirect
golang.org/x/exp v0.0.0-20231226003508-02704c960a9b // indirect
golang.org/x/sync v0.5.0 // indirect
golang.org/x/sys v0.15.0 // indirect
google.golang.org/protobuf v1.30.0 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
lukechampine.com/blake3 v1.2.1 // indirect
)
Loading