verida-js
verida-js copied to clipboard
Refactor how DIDs and Verida networks work
Key requirements:
- A DID document needs to become completely independent from the Verida network
- A single DID document can be linked to contexts across different Verida networks
- Non-Verida DIDs can be used on the Verida network
We will support a new DID method format for VDA DIDs: did:vda:[anchored-blockchain]:0x…
. Here are examples:
-
did:vda:amoy:0x..
-
did:cheqd:0x..
-
did:base:0x..
-
did:polygonid:polygon:main:0x
-
did:polygonid:polygon:mumbai:0x
Anchored blockchains will be a human readable name, that is effectively a lookup within the Verida DID resolver:
-
polamoy
: Polygon Amoy -
polpos
: Polygon PoS -
polzkevm
: Polygon zkEVM -
base
: Coinbase Mainnet -
basesepolia
: Coinbase Sepolia
We need to add &network=
to DID Document / serviceEndpoint / id which specifies the Verida network associate with that context.
The Verida SDK will support three Verida networks:
-
devnet
-
myrtle
-
banksia
-
mainnet
(for backwards compatibility, is actuallymyrtle
)