@node-dlc/bitcoin
Version:
23 lines (22 loc) • 590 B
TypeScript
/// <reference types="node" />
/**
* Returns a tuple containing the quotient and remainder when the divident (num) is
* divided by the divisor (mod).
* @param num divident
* @param mod divisor
*/
export declare function divmod(num: bigint, mod: bigint): [bigint, bigint];
/**
* Base58 encoding and decoding utility
*/
export declare class Base58 {
static alphabet: string;
/**
* Encodes a buffer into a base58 string
*/
static encode(buf: Buffer): string;
/**
* Decodes the base58 string into a buffer
*/
static decode(str: string): Buffer;
}