@ecash/lib
Version:
Library for eCash transaction building
16 lines • 661 B
TypeScript
import { Bytes } from './bytes.js';
import { Writer } from './writer.js';
import { Int } from './int.js';
/**
* Read a VARINT, which encodes a size in the Bitcoin protocol, see:
* https://en.bitcoin.it/wiki/Protocol_documentation#Variable_length_integer
*/
export declare function readVarSize(bytes: Bytes): Int;
/**
* Write a VARINT, which encodes a size in the Bitcoin protocol, see:
* https://en.bitcoin.it/wiki/Protocol_documentation#Variable_length_integer
* @param size Size integer to write
* @param writer Writer to write the size to
*/
export declare function writeVarSize(size: Int, writer: Writer): void;
//# sourceMappingURL=varsize.d.ts.map