Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/keyring/types.ts>KeyringPair

Package publishing for deno.land/x/polkadot
Go to Latest
interface KeyringPair
import { type KeyringPair } from "https://deno.land/x/polkadot@0.2.12/keyring/types.ts";

Properties

readonly
address: string
readonly
addressRaw: Uint8Array
readonly
meta: KeyringPair$Meta
readonly
isLocked: boolean
readonly
publicKey: Uint8Array
readonly
type: KeypairType

Methods

decodePkcs8(passphrase?: string, encoded?: Uint8Array): void
derive(suri: string, meta?: KeyringPair$Meta): KeyringPair
encodePkcs8(passphrase?: string): Uint8Array
lock(): void
setMeta(meta: KeyringPair$Meta): void
sign(message: HexString | string | Uint8Array, options?: SignOptions): Uint8Array
toJson(passphrase?: string): KeyringPair$Json
unlock(passphrase?: string): void
encryptMessage(
message: HexString | string | Uint8Array,
recipientPublicKey: HexString | string | Uint8Array,
nonce?: Uint8Array,
): Uint8Array
decryptMessage(encryptedMessageWithNonce: HexString | string | Uint8Array, senderPublicKey: HexString | string | Uint8Array): Uint8Array | null
verify(
message: HexString | string | Uint8Array,
signature: Uint8Array,
signerPublic: HexString | string | Uint8Array,
): boolean
vrfSign(
message: HexString | string | Uint8Array,
context?: HexString | string | Uint8Array,
extra?: HexString | string | Uint8Array,
): Uint8Array
vrfVerify(
message: HexString | string | Uint8Array,
vrfResult: Uint8Array,
signerPublic: HexString | Uint8Array | string,
context?: HexString | string | Uint8Array,
extra?: HexString | string | Uint8Array,
): boolean