@btc-vision/transaction
Version:
OPNet transaction library allows you to create and sign transactions for the OPNet network.
12 lines (11 loc) • 593 B
TypeScript
import { MemorySlotPointer } from './types.js';
export declare class BufferHelper {
static readonly EXPECTED_BUFFER_LENGTH: number;
static bufferToUint8Array(buffer: Buffer | Uint8Array): Uint8Array;
static uint8ArrayToHex(input: Uint8Array): string;
static hexToUint8Array(input: string): Uint8Array;
static pointerToUint8Array(pointer: MemorySlotPointer): Uint8Array;
static uint8ArrayToPointer(input: Uint8Array): MemorySlotPointer;
static valueToUint8Array(value: bigint, length?: number): Uint8Array;
static uint8ArrayToValue(input: Uint8Array): bigint;
}