toip.tools

function · Browser and Node

seedSigner

An Ed25519 signer from a 32-byte seed.

@toip-tools/coseView source
TypeScriptImport
import { seedSigner } from "@toip-tools/cose";

Declaration

TypeScriptSignature
seedSigner(seed: Uint8Array, kid: Uint8Array, alg?: -19 | -8): AsyncSigner;

Parameters

seedrequired
Uint8Array<ArrayBufferLike>
kidrequired
Uint8Array<ArrayBufferLike>
algoptional
-19 | -8

Default: -19

Returns