0.0.9 • Published 1 year ago

@did.coop/did-key-ed25519 v0.0.9

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

@did.coop/did-key-ed25519

Create signatures that can be verified with Ed25519VerificationKey2020.

Usage

byexample

These snippets should pass byexample

byexample -l javascript README.md

> const { Ed25519Signer } = await import("@did.coop/did-key-ed25519")
> const signer = await Ed25519Signer.generate()
> // signer.id is a did:key ed25519 verification method id
> const signerIdMatch = signer.id.match(/^did:key:(.+)#(.+)$/)
> signerIdMatch[1] === signerIdMatch[2]
true
> const signature = await signer.sign({ data: new TextEncoder().encode('Hello, world!') })
> // Ed25519 signatures are 64 bytes
> signature.length
64
0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago