toip.tools

function · Browser and Node

webCryptoSigner

A WebCrypto key pair (Ed25519 or ECDSA P-256). The private key may be non-extractable.

@toip-tools/eventlogView source
TypeScriptImport
import { webCryptoSigner } from "@toip-tools/eventlog";

Declaration

TypeScriptSignature
webCryptoSigner(pair: CryptoKeyPair): Promise<Signer>;

Parameters

pairrequired
CryptoKeyPair

Returns

Promise<Signer>