+
Skip to content

support W3C DID #452

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

Merged
merged 38 commits into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
c9b9fe9
Add support for readonly and on-chain identities. Initial work on par…
OBrezhniev Apr 15, 2023
8874616
Create new type DID2 wich is a wrapper around github.com/build-trust/…
olomix Apr 21, 2023
8ef98d9
Make Decompose method a separate function
olomix Apr 24, 2023
e44c464
Removed CoreID method from DID and replace id with helper function Co…
olomix Apr 24, 2023
4a75c8f
Get rid of ParseDID2 function
olomix Apr 24, 2023
bdb5bd4
Remove SetString method for DID2
olomix Apr 24, 2023
d6b11aa
Remove NetworkID & Blockchain DID2 methods. Use Decompose method inst…
olomix Apr 24, 2023
d674dd3
Refactor similar code
olomix Apr 24, 2023
991dbed
Remove NewDID2 function
olomix Apr 24, 2023
c182c85
Add missing error handling
olomix Apr 24, 2023
e5cdaae
Add missing error handling
olomix Apr 24, 2023
4cab3e2
Make linters happy
olomix Apr 24, 2023
008bab7
Remove custom DID type
olomix Apr 24, 2023
829f06b
Rename did.go to did2.go: prepare to include third-party DID implemen…
olomix Apr 24, 2023
fa7adeb
Copy DID implementation from https://github.com/build-trust/did
olomix Apr 24, 2023
b67e018
Get rid of github.com/build-trust/did package. Copy implementation lo…
olomix Apr 24, 2023
42f18ae
Remove unneeded type DID2
olomix Apr 24, 2023
820a848
Rename leftovers DID2 to DID
olomix Apr 24, 2023
a3e9ee6
Create new ID for unrecognized DID
olomix Apr 26, 2023
7993e5d
Wrap errors in more meaningful test
olomix Apr 27, 2023
a89f52b
Renamed files
olomix Apr 27, 2023
7eb3c1b
Make type DIDMethod uint instead of string. We need several types (DI…
olomix May 1, 2023
3e3ad48
Refactor working with method byte, remove some redundant ID methods.
olomix May 1, 2023
062cadc
return error from IDFromDID if we know the DID method, but still can'…
olomix May 1, 2023
08d238a
Getting rid of unknown ID type
olomix May 2, 2023
b924349
Merge branch 'master' into v2
olomix May 3, 2023
9187aa1
Fix encoding ethereum address to/from genesis
olomix May 3, 2023
9f5944c
move W3C did to deparate package
olomix May 3, 2023
c536793
remove dependency on onChainMethods dict
olomix May 4, 2023
edd24a9
Remove method DIDMethodPolygonIDOnChain
olomix May 4, 2023
37cdb4f
Remove method DIDMethodPolygonIDOnChain
olomix May 4, 2023
953bf75
make DIDMethod be strings again
olomix May 4, 2023
5cced07
make readonly networkID empty string
olomix May 5, 2023
f468197
remove unneeded public constant
olomix May 5, 2023
42b31ff
Rename did package to w3c. Rename did.Parse function to w3c.ParseDID.…
olomix May 19, 2023
9b738bf
Remove unused constant NoChaine
olomix May 30, 2023
014f51e
Revert "Remove unused constant NoChaine"
olomix May 30, 2023
10cc464
add sepolia testnet (#453)
olomix Jul 27, 2023
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
7 changes: 2 additions & 5 deletions claim_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (

"github.com/iden3/go-iden3-crypto/poseidon"
"github.com/iden3/go-iden3-crypto/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

Expand Down Expand Up @@ -389,8 +388,7 @@ func TestNewSchemaHashFromHex(t *testing.T) {
exp, err := hex.DecodeString(hash)
require.NoError(t, err)

assert.Equal(t, exp[:], got[:])

require.Equal(t, exp[:], got[:])
}

func TestSchemaHash_BigInt(t *testing.T) {
Expand All @@ -402,8 +400,7 @@ func TestSchemaHash_BigInt(t *testing.T) {

got := schema.BigInt()

assert.Equal(t, exp, got)

require.Equal(t, exp, got)
}

func TestGetIDPosition(t *testing.T) {
Expand Down
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载