Skip to content

Commit b16a39e

Browse files
committed
Update README
1 parent 51ce7ac commit b16a39e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
FilJWT is a Go package designed for the integration of Filecoin wallet addresses with JSON Web Tokens (JWT), specifically using the ES256K-R signing method. This package uniquely caters to Filecoin wallet addresses that follow the secp256k1 protocol.
66

77
## Features
8-
- **ES256K-R Signing Method**: Implements the ES256K-R JWT signing method, where the ECDSA signature is deterministically generated as per RFC 6979. The 'R' denotes an additional byte at the signature's end, enabling the recovery of the public key directly from the JWT signature. The signature comprises 65 bytes: 32 bytes for R, 32 bytes for S, and 1 byte for V, arranged in R || S || V format.
8+
- **ES256K-R Signing Method**: Implements the ES256K-R JWT signing method, where the ECDSA signature is deterministically generated as per RFC 6979. This signing method uses an additional byte at the signature's end, enabling the recovery of the public key directly from the JWT signature. The signature comprises 65 bytes: 32 bytes for R, 32 bytes for S, and 1 byte for V, arranged in R || S || V format.
99
- **Filecoin Wallet Address Compatibility**: Specifically designed to work with Filecoin wallet addresses that use the secp256k1 protocol. The package extracts these addresses from the 'kid' header of a JWT token for signature verification.
1010
- **Secp256k1 Key Utility**: Includes a utility to convert a Lotus wallet export string into a Filecoin address and a secp256k1 private key, facilitating easy integration with Filecoin's wallet management.
1111

es256kr.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
var (
1414
// SingingMethodES256KR represents the ES256K-R JWT signing method, where the ECDSA signature is generated using the deterministic scheme as described by RFC 6979.
15-
// The 'R' donates an extra byte at the end of the signature, which allows the public key to be recoverable from the
15+
// This signing method uses an extra byte at the end of the signature, which allows the public key to be recoverable from the
1616
// signature, making a total length of 65 byte signatures: 32 byte R, 32 byte S and 1 byte V in R || S || V format.
1717
SingingMethodES256KR jwt.SigningMethod
1818

0 commit comments

Comments
 (0)