ssi
ssi copied to clipboard
did:pkh: Questions on solana
Was wondering about the solana example: https://github.com/spruceid/ssi/blob/main/did-pkh/tests/did-sol.jsonld#L10
Why does it have both Ed25519VerificationKey2018
and SolanaMethod2021
?
Both of them seem to use the same publicKeyJwk
. Is there a reason for the duplication here? Also, any reason JWK is used over publicKeyMultibase
? Also seems like ed25519verificationkey2020
would be a better choice here?
SolanaMethod2021
can be deprecated I think... Just need to confirm on our side regarding backwards compatibility for existing issued verifiable credentials... Originally it was to have a 1:1 correspondence between the verification method type and the signature/proof type - but this is no longer required, as demonstrated by e.g. EcdsaSecp256k1RecoverySignature2020 and EthereumEip712Signature2021.
publicKeyJwk
is conventional in ssi
currently when not otherwise specified by the proof type, although this could perhaps be changed. Ed25519VerificationKey2018 comes from https://w3c-ccg.github.io/lds-ed25519-2018/ . For the 2020 proof suite (https://w3c-ccg.github.io/lds-ed25519-2020/), Ed25519VerificationKey2020
could be used - but we are using the 2018 Ed25519 proof suite mainly for now as it has more adoption.... JsonWebSignature2020 is another option (https://w3c-ccg.github.io/lds-jws2020/)