UNPKG

@vbyte/btc-dev

Version:

Batteries-included toolset for plebian bitcoin development

43 lines (42 loc) 1.55 kB
export declare namespace RefPointer { const outpoint: { encode: typeof encode_outpoint; decode: typeof decode_outpoint; verify: typeof verify_outpoint; assert: typeof assert_outpoint; }; const record_id: { encode: typeof encode_inscription_id; decode: typeof decode_inscription_id; verify: typeof verify_inscription_id; assert: typeof assert_inscription_id; }; const rune_id: { encode: typeof encode_rune_id; decode: typeof decode_rune_id; verify: typeof verify_rune_id; assert: typeof assert_rune_id; }; } declare function encode_inscription_id(txid: string, order?: number): string; declare function decode_inscription_id(inscription_id: string): { txid: string; order: number; }; declare function verify_inscription_id(inscription_id: string): boolean; declare function assert_inscription_id(inscription_id: string): void; declare function encode_rune_id(block_height: number, block_index: number): string; declare function decode_rune_id(rune_id: string): { block_height: number; block_index: number; }; declare function verify_rune_id(rune_id: string): boolean; declare function assert_rune_id(rune_id: string): void; declare function encode_outpoint(txid: string, vout: number): string; declare function decode_outpoint(outpoint: string): { txid: string; vout: number; }; declare function verify_outpoint(outpoint: string): boolean; declare function assert_outpoint(outpoint: string): void; export {};