+
Skip to content

Sepolia testnet support #453

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 1 commit into from
Jul 27, 2023
Merged
Changes from all commits
Commits
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
12 changes: 8 additions & 4 deletions did.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ const (

// Goerli is ethereum goerli test network
Goerli NetworkID = "goerli" // goerli
// Sepolia is ethereum Sepolia test network
Sepolia NetworkID = "sepolia"
// UnknownNetwork is used when it's not possible to retrieve network from identifier
UnknownNetwork NetworkID = "unknown"

Expand Down Expand Up @@ -93,17 +95,19 @@ var DIDMethodNetwork = map[DIDMethod]map[DIDNetworkFlag]byte{
{Blockchain: Polygon, NetworkID: Main}: 0b00010000 | 0b00000001,
{Blockchain: Polygon, NetworkID: Mumbai}: 0b00010000 | 0b00000010,

{Blockchain: Ethereum, NetworkID: Main}: 0b00100000 | 0b00000001,
{Blockchain: Ethereum, NetworkID: Goerli}: 0b00100000 | 0b00000010,
{Blockchain: Ethereum, NetworkID: Main}: 0b00100000 | 0b00000001,
{Blockchain: Ethereum, NetworkID: Goerli}: 0b00100000 | 0b00000010,
{Blockchain: Ethereum, NetworkID: Sepolia}: 0b00100000 | 0b00000011,
},
DIDMethodPolygonID: {
{Blockchain: ReadOnly, NetworkID: NoNetwork}: 0b00000000,

{Blockchain: Polygon, NetworkID: Main}: 0b00010000 | 0b00000001,
{Blockchain: Polygon, NetworkID: Mumbai}: 0b00010000 | 0b00000010,

{Blockchain: Ethereum, NetworkID: Main}: 0b00100000 | 0b00000001,
{Blockchain: Ethereum, NetworkID: Goerli}: 0b00100000 | 0b00000010,
{Blockchain: Ethereum, NetworkID: Main}: 0b00100000 | 0b00000001,
{Blockchain: Ethereum, NetworkID: Goerli}: 0b00100000 | 0b00000010,
{Blockchain: Ethereum, NetworkID: Sepolia}: 0b00100000 | 0b00000011,
},
DIDMethodOther: {
{Blockchain: UnknownChain, NetworkID: UnknownNetwork}: 0b11111111,
Expand Down
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载