hyperledger / aries-rfcs

Hyperledger Aries is infrastructure for blockchain-rooted, peer-to-peer interactions
https://hyperledger.github.io/aries-rfcs/
Apache License 2.0
326 stars 217 forks source link

Signature decorator inconsistency #423

Closed gnarula closed 2 years ago

gnarula commented 4 years ago

RFCs

The example for connection~sig in connection-protocol in AIP has the signer vk in signers key:

https://github.com/hyperledger/aries-rfcs/blob/9b0aaa39df7e8bd434126c4b33c097aae78d65bf/features/0160-connection-protocol/README.md#L398-L403

The example for connection~sig in did-exchange has the signer vk in signers key:

https://github.com/hyperledger/aries-rfcs/blob/9b0aaa39df7e8bd434126c4b33c097aae78d65bf/features/0023-did-exchange/README.md#L403-L408

The signature-decorator spec, mentions the signer key (singular)

https://github.com/hyperledger/aries-rfcs/blob/23f8b38de84bec6154cec268280916aaf00fd17c/features/0234-signature-decorator/README.md#L45-L50

Implementations

Uses signer

Uses signer

Users signers

Uses signer

Besides the difference in the field name, RFC 0234 suggests values are supposed to be base64URL encoded. What should implementations of 0160 follow?

swcurran commented 4 years ago

Good stuff - thanks for reviewing and providing clear feedback. My suggestion:

  1. Change connection to "signer" as a clarification - no new version. Update AIP to point to the clarified version.
  2. Same with DID-Exchange, with notification to the aries-framework-javescript team.
  3. Update the signature decorator RFC to change to "signer".

I'm not sure on the last question re: 0160 and base64URL - others? @andrewwhitehead

Thoughts @troyronda @llorllale @TelegramSam ?

TimoGlastra commented 2 years ago

I think the base64url issue has been resolved elsewhere, and created a PR to fix the signer / signers issue for completeness: https://github.com/hyperledger/aries-rfcs/pull/732