0.0.9 • Published 9 months ago

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

Weekly downloads
-
License
-
Repository
-
Last release
9 months 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

9 months ago

0.0.8

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago