Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SingingMethodES256KR represents the ES256K-R JWT signing method, where the ECDSA signature is generated using the deterministic scheme as described by RFC 6979. // This signing method uses an extra byte at the end of the signature, which allows the public key to be recoverable from the // signature, making a total length of 65 byte signatures: 32 byte R, 32 byte S and 1 byte V in R || S || V format. SingingMethodES256KR jwt.SigningMethod // KIDAddrKeyFunc extracts Filecoin wallet address from 'kid' header of a JWT token and uses it to verify the token signature. // See jwt.Keyfunc, jwt.Parse. KIDAddrKeyFunc jwt.Keyfunc = func(token *jwt.Token) (any, error) { kid, ok := token.Header["kid"] if !ok { return nil, jwt.ErrTokenInvalidId } addr, ok := kid.(string) if !ok { return nil, jwt.ErrTokenInvalidId } return addr, nil } )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.