UNPKG

@funded-labs/plug-controller

Version:

Internet Computer Plug wallet's controller

17 lines (16 loc) 722 B
import { Ed25519KeyIdentity as baseEd25519Identity } from '@dfinity/identity'; import { GenericSignIdentity } from '../genericSignIdentity'; import { PublicKey } from '@dfinity/agent'; import { JsonnableKeyPair } from './../../../interfaces/identity'; declare class Ed25519KeyIdentity extends baseEd25519Identity implements GenericSignIdentity { protected _privateKey: ArrayBuffer; protected constructor(publicKey: PublicKey, _privateKey: ArrayBuffer); getPem(): string; /** * Serialize this key to JSON. */ toJSON(): JsonnableKeyPair; static fromJSON(json: string): Ed25519KeyIdentity; static fromSecretKey(key: ArrayBuffer): Ed25519KeyIdentity; } export default Ed25519KeyIdentity;