Variable default

default: {
    AccountExtendedPublicKey: typeof AccountExtendedPublicKey;
    AddressType: typeof AddressType;
    ExtendedPrivateKey: typeof ExtendedPrivateKey;
    ExtendedPublicKey: typeof ExtendedPublicKey;
    IncorrectPassword: typeof IncorrectPassword;
    InvalidKeystore: typeof InvalidKeystore;
    Keychain: typeof Keychain;
    Keystore: typeof Keystore;
    UnsupportedCipher: typeof UnsupportedCipher;
    XPubStore: typeof XPubStore;
    key: {
        privateKeyToBlake160: ((privateKey) => HexString);
        privateToPublic: {
            (privateKey): Buffer;
            (privateKey): HexString;
        };
        publicKeyToBlake160: ((publicKey) => HexString);
        recoverFromSignature: ((message, signature) => HexString);
        signRecoverable: ((message, privateKey) => HexString);
    };
    mnemonic: {
        entropyToMnemonic: ((entropyStr) => string);
        generateMnemonic: (() => string);
        mnemonicToEntropy: ((mnemonic?) => HexString);
        mnemonicToSeed: ((mnemonic?, password?) => Promise<Buffer>);
        mnemonicToSeedSync: ((mnemonic?, password?) => Buffer);
        validateMnemonic: ((mnemonic) => boolean);
    };
}

Type declaration

  • AccountExtendedPublicKey: typeof AccountExtendedPublicKey
  • AddressType: typeof AddressType
  • ExtendedPrivateKey: typeof ExtendedPrivateKey
  • ExtendedPublicKey: typeof ExtendedPublicKey
  • IncorrectPassword: typeof IncorrectPassword
  • InvalidKeystore: typeof InvalidKeystore
  • Keychain: typeof Keychain
  • Keystore: typeof Keystore
  • UnsupportedCipher: typeof UnsupportedCipher
  • XPubStore: typeof XPubStore
  • key: {
        privateKeyToBlake160: ((privateKey) => HexString);
        privateToPublic: {
            (privateKey): Buffer;
            (privateKey): HexString;
        };
        publicKeyToBlake160: ((publicKey) => HexString);
        recoverFromSignature: ((message, signature) => HexString);
        signRecoverable: ((message, privateKey) => HexString);
    }
    • privateKeyToBlake160: ((privateKey) => HexString)
    • privateToPublic: {
          (privateKey): Buffer;
          (privateKey): HexString;
      }
        • (privateKey): Buffer
        • Parameters

          • privateKey: Buffer

          Returns Buffer

        • (privateKey): HexString
        • Parameters

          • privateKey: string

          Returns HexString

    • publicKeyToBlake160: ((publicKey) => HexString)
    • recoverFromSignature: ((message, signature) => HexString)
        • (message, signature): HexString
        • Parameters

          • message: string
          • signature: string

          Returns HexString

    • signRecoverable: ((message, privateKey) => HexString)
        • (message, privateKey): HexString
        • Parameters

          • message: string
          • privateKey: string

          Returns HexString

  • mnemonic: {
        entropyToMnemonic: ((entropyStr) => string);
        generateMnemonic: (() => string);
        mnemonicToEntropy: ((mnemonic?) => HexString);
        mnemonicToSeed: ((mnemonic?, password?) => Promise<Buffer>);
        mnemonicToSeedSync: ((mnemonic?, password?) => Buffer);
        validateMnemonic: ((mnemonic) => boolean);
    }
    • entropyToMnemonic: ((entropyStr) => string)
        • (entropyStr): string
        • Parameters

          • entropyStr: string

          Returns string

    • generateMnemonic: (() => string)
        • (): string
        • Returns string

    • mnemonicToEntropy: ((mnemonic?) => HexString)
    • mnemonicToSeed: ((mnemonic?, password?) => Promise<Buffer>)
        • (mnemonic?, password?): Promise<Buffer>
        • Parameters

          • mnemonic: string = ""
          • password: string = ""

          Returns Promise<Buffer>

    • mnemonicToSeedSync: ((mnemonic?, password?) => Buffer)
        • (mnemonic?, password?): Buffer
        • Parameters

          • mnemonic: string = ""
          • password: string = ""

          Returns Buffer

    • validateMnemonic: ((mnemonic) => boolean)
        • (mnemonic): boolean
        • Parameters

          • mnemonic: string

          Returns boolean

Generated using TypeDoc