0.0.9 • Published 10 months ago

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

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

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago