Skip to content

Commit

Permalink
fix: Added a signature metadata object to the response
Browse files Browse the repository at this point in the history
It is used to verify the that the signature originates from the provided public key
  • Loading branch information
antondalgren committed Nov 6, 2023
1 parent 2895f6b commit 992d702
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions xrpl/caip122.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ Correspondingly, a message needs to be serialized to bytes prior to signing it w

We propose using the signature type `xrpl:secp256k1` and `xrpl:ed25519` to refer to the chain and algorithm used uniquely.

### Signature Meta

We propose that the signature meta contains the public key of the signer. This is to allow for the requester to verify that the signature belongs to the specified public key. The requester is also responsible for verifying that the public key that was used to sign the message is properly associated with the address in the payload.

```
type SignatureMeta struct {
SigningPubKey String
}
```

### Signature Creation

The abstract data model must be canonicalized to a string representation in an unambigious format, and then the string serialized to the proper binary format mentioned [above](#signing-algorithm) to be signed over with the proper algorithm.
Expand Down

0 comments on commit 992d702

Please sign in to comment.