UNPKG

@exodus/solana-web3.js

Version:
30 lines (29 loc) 909 B
/// <reference types="node" /> import { Buffer } from 'buffer'; import { PublicKey } from './publickey.js'; /** * An account key pair (public and secret keys). * * @deprecated since v1.10.0, please use {@link Keypair} instead. */ export declare class Account { /** * Create a new Account object * * If the secretKey parameter is not provided a new key pair is randomly * created for the account * * @param secretKey Secret key for the account */ constructor(secretKey?: Buffer | Uint8Array | Array<number>); /** * The public key for this account */ get publicKey(): PublicKey; /** * The **unencrypted** secret key for this account. The first 32 bytes * is the private scalar and the last 32 bytes is the public key. * Read more: https://blog.mozilla.org/warner/2011/11/29/ed25519-keys/ */ get secretKey(): Buffer; }