JoseSigner
Last updated
Last updated
• Docs
/ / JoseSigner
A signer that uses the jose library to sign twines
Signer
new JoseSigner(
privateKey
,publicKey
,alg
):
Create a new JoseSigner from a JWK
Parameters
privateKey
KeyLike
The private key
publicKey
KeyLike
The public key
alg
string
The algorithm to use
Returns
Defined in
privateKey
KeyLike
Private Key
publicKey
KeyLike
Public Key
algorithm
string
Algorithm
Create a new JoseSigner from a random key pair
Parameters
alg
string
'ES256'
The algorithm to use
options
GenerateKeyPairOptions
{}
Options for the key pair
Returns
See
Defined in
Get the public JWK
Returns
See
Implementation of
Signer.getPublicJWK
Defined in
sign(
bytes
):Promise
<string
>
Sign some bytes
Parameters
bytes
Uint8Array
Returns
Promise
<string
>
See
Implementation of
Signer.sign
Defined in
static
fromRandomness(alg
, options
): Promise
<>
Promise
<>
getPublicJWK(): Promise
<>
Promise
<>