Closed greenart7c3 closed 1 month ago
Ack. Let's make sure all implementers know this is changing.
@haorendashu you can change this in your signer too For now im returning both the signature and the result fields in Amber
signature
is better than result
for sign_event
.
With result
I would have guessed that I receive the whole signed event instead of just the signature.
signature
is better thanresult
forsign_event
. Withresult
I would have guessed that I receive the whole signed event instead of just the signature.
Maybe we can add a return type too, so clients can choose what to return In the web intents i already do something like this because some clients just want to send the content, tags and createdAt and the signer fill the id, pubkey and sig
@greenart7c3 Have you providered a implementation ? If we reach a consensus. I want to test the client first and than i change my signer.
@greenart7c3 Have you providered a implementation ? If we reach a consensus. I want to test the client first and than i change my signer.
Latest version of amethyst has this change
@greenart7c3 OK, I also change to return both signature
and result
. Maybe i will publish it at next week.
This changes the return field from signature to result Returning signature can confuse people since it only returns the signature if it's a sign_event