diff --git a/index.html b/index.html index 48e368c..b3d5ef9 100644 --- a/index.html +++ b/index.html @@ -1435,6 +1435,16 @@

Multikey

(`z`). + + SM2 256-bit public key + +The encoding of an SM2 public key MUST start with the two-byte prefix +`0x8624` (the varint expression of `0x1206`) followed by the 33-byte compressed +public key data. The resulting 35-byte value MUST then be encoded using the +base-58-btc alphabet, according to Section [[[#multibase-0]]], and then +prepended with the base-58-btc Multibase header (`z`). + + @@ -1489,6 +1499,16 @@

Multikey

(`z`). + + SM2 256-bit secret key + +The encoding of an SM2 secret key MUST start with the two-byte prefix +`0x9026` (the varint expression of `0x1310`) followed by the 32-byte +secret key data. The resulting 34-byte value MUST then be encoded using the +base-58-btc alphabet, according to Section [[[#multibase-0]]], and then +prepended with the base-58-btc Multibase header (`z`). + + @@ -3764,6 +3784,16 @@

Multikey Examples

"capabilityInvocation": [ "https://controller.example/123#key-2" ] +} + + +
+{
+  "id": "https://multikey.example/issuer/123#key-0",
+  "type": "Multikey",
+  "controller": "https://multikey.example/issuer/123",
+  "publicKeyMultibase": "zEPJc1vCfbG2aoZn8f3U8ggYRL4ZFfF63ZA3qFSk81WJxnCQr"
 }