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

use a varint for eip155 chain IDs #11

Merged
merged 1 commit into from
Sep 5, 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
4 changes: 2 additions & 2 deletions methods/did:pkh.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The [Public Key Hash DID method](https://github.com/w3c-ccg/did-pkh/blob/main/di
| CAIP-2 Namespace | Integer Code | CAIP-2 Reference Length | CAIP-2 Reference Encoding | Account ID Length | Account ID Encoding |
|:-----------------|:-------------|:------------------------|:--------------------------|--------------------|------------------------|
| bip122 | 0x01 | 32 [^fn1] | bytes | 25 [^fn2] | bytes |
| eip155 | 0x02 | Varint-prefixed [^fn3] | utf-8 bytes | 20 [^fn4] | bytes |
| eip155 | 0x02 | None, self-described | Varint [^fn3] | 20 [^fn4] | bytes |
| cosmos | 0x03 | Varint-prefixed | utf-8 bytes | 20 or 32[^fn5] | bytes, varint-prefixed |
| starknet | 0x04 | Varint-prefixed | utf-8 bytes | 20 [^fn6] | bytes |
| hedera | 0x05 | Varint-prefixed | utf-8 bytes | 20, 32 or 33[^fn7] | bytes, varint-prefixed |
Expand All @@ -28,7 +28,7 @@ Where:
* `multidid-code` - a varint encoding of `0xd1d`
* `method-code` - a varint encoding of `0xca`
* `caip2-namespace` - a varint encoding of the Integer Code associated with the CAIP-2 Namespace found in the table above
* `caip2-ref-length` - If the CAIP-2 Reference is not a fixed length, MUST contain the varint-encoded byte-length of the CAIP-2 Reference
* `caip2-ref-length` - If the CAIP-2 Reference is not a fixed length or self-describing, MUST contain the varint-encoded byte-length of the CAIP-2 Reference
* `caip2-ref` - CAIP-2 reference identifying the chain
* `account-id` - CAIP-10 account ID
* `url-length` - a varint describing the length of the `url-bytes` parameter
Expand Down