nkeys.KeyPair
import type { nkeys } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.28.0/nats-base-client/internal_mod.ts";
const { KeyPair } = nkeys;
interface KeyPair {
clear(): void;
getPrivateKey(): Uint8Array;
getPublicKey(): string;
getSeed(): Uint8Array;
sign(input: Uint8Array): Uint8Array;
verify(input: Uint8Array, sig: Uint8Array): boolean;
}interface KeyPair {
clear(): void;
getPrivateKey(): Uint8Array;
getPublicKey(): string;
getSeed(): Uint8Array;
sign(input: Uint8Array): Uint8Array;
verify(input: Uint8Array, sig: Uint8Array): boolean;
}§Methods
§
clear(): void
[src]Clears the secret stored in the keypair. After clearing a keypair cannot be used or recovered.
§
getPrivateKey(): Uint8Array
[src]Returns the private key associated with the KeyPair
@return
Uint8Array
§Methods
§
clear(): void
[src]Clears the secret stored in the keypair. After clearing a keypair cannot be used or recovered.
§
getPrivateKey(): Uint8Array
[src]Returns the private key associated with the KeyPair
@return
Uint8Array