Skip to content

Custom JWS implementation #33

@ts5746

Description

@ts5746

Description

Blockchains may use other signing algorithms than allowed by JSON Web Signature (JWS) as specified in RFC 7518. This is problem for Whiteflag authentication method 1, that requires to sign the JWS with the native algorithm of the blockchain. As a practical result, available JWS software libraries do not work.

See also:
Whiteflag API issue 28
Whiteflag Standard issue 21

Environment / Versions

Blockchain

Affected blockchains:

  • Bitcoin and Ethereum use the secp256k1 curve, instead of the prime256v1 curve.
  • Polkadot uses sr25519, which is not in RFC 7518 at all.

Solution

Use a custom JWS implementation for Whiteflag authentication signatures.

Metadata

Metadata

Assignees

Labels

interoperabilityImpacts interoperability and backwards compatibilityprotocolWhiteflag protocol change or additionrefactorCode review and refactoring

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions