Skip to content

Add support for ECDSA signing #17

@AshUK

Description

@AshUK

See https://www.rfc-editor.org/rfc/rfc8392#appendix-A.2.3 of the spec.

I'd imagine API akin to:

const cwt = new Cborwebtoken()
const signed = cwt.sign(payload, privateKey).then((token) => {
	console.log(`cwt length: ${token.length}`)
	console.log(`cwt value : ${token}`)
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions