Skip to content

Commit

Permalink
fix converting secp256r1 formatting docs
Browse files Browse the repository at this point in the history
  • Loading branch information
contrun committed Dec 21, 2023
1 parent 947989a commit 07033da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/secp256r1.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ by concatenating the R and S value in the last two lines.
Running the following command would save such signature to the file `signature.raw`

```
openssl asn1parse -dump -inform DER -in signature | awk -F: '/33 prim: INTEGER/ {print $NF}' | xxd -r -p > signature.raw
openssl asn1parse -dump -inform DER -in signature | awk -F: '/prim:\s*INTEGER/ {print $NF}' | xxd -r -p > signature.raw
```

The final signature field of the ckb transaction should be this public key concatenated with the above signature.

0 comments on commit 07033da

Please sign in to comment.