Skip to content

Commit

Permalink
[Errata arweave/caip122] - explicitly add signatureMeta.t value (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
bumblefudge committed Feb 15, 2024
2 parents 080589f + 46e9322 commit 45b54cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arweave/caip122.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Type: ${type}
Signature: ${signature}
```

The signature creation process on Arweave is done through the `arweave-js` library. The message data model is expressed in string format. This string is signed using the RSA-PSS algorithm through a manual call to the `sign()` method from the `arweave-js` library. The signature is returned as a Uint8Array of bytes which is then Base64Url encoded by calling `arweave.utils.bufferTob64Url()`.
The signature creation process on Arweave is done through the `arweave-js` library. The message data model is expressed in string format. This string is signed using the RSA-PSS algorithm through a manual call to the `sign()` method from the `arweave-js` library. The signature is returned as a Uint8Array of bytes which is then Base64Url encoded by calling `arweave.utils.bufferTob64Url()`. At time or writing, the only type of signature (and thus the only valid value for `signatureMeta.t`) is `arweaveSign`, and where no signature type is explicitly set this should be the implicit value.

### Signature Verification

Expand All @@ -90,4 +90,4 @@ The signature is encoded in Base64URL format. It must be decoded to an array of

## Rights

Copyright and related rights waived via CC0.
Copyright and related rights waived via CC0.

0 comments on commit 45b54cc

Please sign in to comment.