Closed Vishwas1 closed 2 years ago
The W3C spec mentioned in the description is unofficial draft published on 26 July 2021.
The latest draft ( https://www.w3.org/TR/did-core/#dfn-publickeymultibase ) doesn't meantions about prefix 2 byte array to publicKeyMultibase
As per spec:
https://w3c-ccg.github.io/lds-ed25519-2020/#ed25519verificationkey2020
If you look at Digital bazar, they seems to be right:
Prefixing the 45 byte key with two byte data https://github.com/digitalbazaar/ed25519-verification-key-2020/blob/f78c8fd6e0c9debc205795529fb569f5b9c864fe/lib/Ed25519VerificationKey2020.js#L13
Same Goes for priatekey https://w3c-ccg.github.io/lds-ed25519-2020/#example-4