-
Notifications
You must be signed in to change notification settings - Fork 45
Allow to use addresses instead of public keys. #56
Comments
We should resolve this issue by specifying the signature suite for Koblitz2017 and specifying a "publicAddress" property in the key description for that signature suite. There is nothing to do in the DID Spec as the "publicAddress" is a key material property which should be specified in the signature suite and not the DID Spec. Close this issue once we have a tracking issue for this in the Koblitz2017 signature suite. |
@msporny just to be sure I understand correctly. Will it be possible to describe key material in DID Document with value of Public Address only, as given below? Note I use "publicKeyAddress" instead of "publicKeyPem", "publicKeyJwk", "publicKeyHex", "publicKeyBase64" etc (examples from https://w3c-ccg.github.io/did-spec/#public-keys)
|
@Drabiv we have this proposed method here: https://github.com/uport-project/eth-did-resolver {
'@context': 'https://w3id.org/did/v1',
id:'did: eth:0xf3beac30c498d9e26865f34fcaa57dbb935b0d74',
publicKey: [{
id: `did: eth:0xf3beac30c498d9e26865f34fcaa57dbb935b0d74#keys-1`,
type: 'EthereumAddress',
owner: 'did:eth:0xf3beac30c498d9e26865f34fcaa57dbb935b0d74',
address: '0xf3beac30c498d9e26865f34fcaa57dbb935b0d74'
}]
} |
Thanks a lot @pelle. What is the relation of this DID resolver to Uport? I have not seen address property in uport specs (https://github.com/uport-project/specs/blob/a2576239115d74ec6bae82703614e7cdc81ab618/pki/diddocument.md) |
Please do not mix addresses with public keys. If addresses are needed in the DID Spec, they should be in a new Signature suites should avoid relying on addresses for verification, and when possible should not use blockchain specific encoding. There is no repo for Koblitz2017, and searching for it returns nothing. |
This has been addressed in 8dbfe62 and by creating a new Linked Data Cryptographic Suite https://github.com/w3c-dvcg/lds-ecdsa-secp256k1-2019, which can define an |
As explained here – https://github.com/WebOfTrustInfo/rebooting-the-web-of-trust-spring2018/blob/master/topics-and-advance-readings/DID-Method-erc725.md by @peacekeeper –
"In Ethereum, looking up a raw public key from a native 20-byte address is a complex and resource-intensive process. The DID community may want to consider allowing hashed public keys in the DID documents instead of (or in addition to) the raw public keys. It seems this would make certain DID methods such as erc725 much simpler to implement, while at the same time not really limiting the spirit and potential use cases of DIDs."
Will it be possible to add to DID spec "publicAddress" property (with the same rules as for publicKey property)?
The text was updated successfully, but these errors were encountered: