SYMBOL INDEX (289 symbols across 61 files) FILE: src/class/Transaction/Transaction.ts class Transaction (line 14) | class Transaction { method constructor (line 17) | constructor ( method data (line 32) | get data () : TxData { method version (line 36) | get version () : number { method vin (line 40) | get vin () : TxInput[] { method vout (line 44) | get vout () : TxOutput[] { method locktime (line 48) | get locktime () : TxLocktime { method base (line 52) | get base () : Buff { method buff (line 56) | get buff () : Buff { method raw (line 60) | get raw () : Uint8Array { method hex (line 64) | get hex () : string { method size (line 68) | get size () : number { method bsize (line 72) | get bsize () : number { method weight (line 76) | get weight () : number { method vsize (line 80) | get vsize () : number { method hash (line 85) | get hash () : string { method txid (line 90) | get txid () : string { method export (line 95) | async export () : Promise { FILE: src/class/Transaction/TxInput.ts class TxInput (line 11) | class TxInput { method constructor (line 15) | constructor (txdata : TxData, index : number) { method data (line 20) | get data () : InputData { method txid (line 24) | get txid () : string { method vout (line 28) | get vout () : number { method prevout (line 32) | get prevout () : TxOutput | undefined { method scriptSig (line 38) | get scriptSig () : TxScript { method sequence (line 42) | get sequence () : TxSequence { method witness (line 46) | get witness () : TxWitness { method type (line 50) | get type () : InputType { method sign (line 71) | sign (seckey : Bytes, config : HashConfig) { FILE: src/class/Transaction/TxLocktime.ts constant LOCKTIME_THRESHOLD (line 4) | const LOCKTIME_THRESHOLD = 500000000 class TxLocktime (line 6) | class TxLocktime { method constructor (line 9) | constructor (value : LockData = 0) { method isTimelock (line 13) | get isTimelock () : boolean { method timestamp (line 17) | get timestamp () : number { method timestamp (line 23) | set timestamp (value : number) { method blockheight (line 27) | get blockheight () : number { method blockheight (line 33) | set blockheight (value : number) { method estDate (line 37) | get estDate () : Date { method estDate (line 43) | set estDate (date : Date) { method toJSON (line 47) | toJSON () : number { FILE: src/class/Transaction/TxOutput.ts class TxOutput (line 5) | class TxOutput { method constructor (line 9) | constructor (txout : OutputData) { method type (line 14) | get type () : OutputType { FILE: src/class/Transaction/TxScript.ts type ScriptFormat (line 8) | type ScriptFormat = 'p2sh' | 'p2w' | 'p2tr' class TxScript (line 10) | class TxScript { method constructor (line 13) | constructor( method raw (line 19) | get raw () : Uint8Array { method hex (line 23) | get hex () : string { method asm (line 27) | get asm () : string[] { method getHash (line 31) | getHash (format : ScriptFormat, version ?: number) : string { method toJSON (line 44) | toJSON() : string[] { FILE: src/class/Transaction/TxSequence.ts constant MAX_VAL (line 3) | const MAX_VAL = 0xFFFFFFFF constant NO_LOCK (line 4) | const NO_LOCK = (1 << 31) constant TIME_MOD (line 5) | const TIME_MOD = 512 constant LOCK_TYPE (line 6) | const LOCK_TYPE = (1 << 22) class TxSequence (line 12) | class TxSequence { method constructor (line 15) | constructor (value : SequenceData) { method isReplaceable (line 23) | get isReplaceable () : boolean { method isLocked (line 27) | get isLocked () : boolean { method isTimelock (line 31) | get isTimelock () : boolean { method timestamp (line 35) | get timestamp () : number { method timestamp (line 43) | set timestamp (value : number) { method blockheight (line 49) | get blockheight () : number { method blockheight (line 57) | set blockheight (value : number) { method estDate (line 62) | get estDate () : Date { method estDate (line 68) | set estDate (date : Date) { method toJSON (line 76) | toJSON () : number { FILE: src/class/Transaction/TxWitness.ts class TxWitness (line 6) | class TxWitness { method constructor (line 11) | constructor ( method length (line 20) | get length () : number { method annex (line 24) | get annex () : string | undefined { method cblock (line 31) | get cblock () : string | undefined { method script (line 38) | get script () : ScriptData | undefined { method params (line 45) | get params () : Bytes[] { method toJSON (line 49) | toJSON () : ScriptData[] { FILE: src/lib/addr/hash.ts function hash160pkh (line 7) | function hash160pkh (pubkey : Bytes) : Buff { function hash160sh (line 13) | function hash160sh (script : ScriptData) : Buff { function sha256sh (line 18) | function sha256sh (script : ScriptData) : Buff { FILE: src/lib/addr/p2pkh.ts function check (line 6) | function check ( function encode (line 19) | function encode ( function decode (line 29) | function decode ( function scriptPubKey (line 39) | function scriptPubKey (input : Bytes) : string[] { function fromPubKey (line 45) | function fromPubKey ( constant P2PKH (line 53) | const P2PKH = { check, encode, decode, hash: hash160pkh, scriptPubKey, f... FILE: src/lib/addr/p2sh.ts function check (line 6) | function check ( function encode (line 20) | function encode ( function decode (line 30) | function decode ( function scriptPubKey (line 40) | function scriptPubKey (input : Bytes) : string[] { function fromScript (line 45) | function fromScript ( constant P2SH (line 53) | const P2SH = { check, encode, decode, hash: hash160sh, scriptPubKey, fro... FILE: src/lib/addr/p2tr.ts constant VALID_PREFIXES (line 7) | const VALID_PREFIXES = [ 'bc1p', 'tb1p', 'bcrt1p' ] function check (line 9) | function check (address : string) : boolean { function encode (line 18) | function encode ( function decode (line 28) | function decode (address : string) : Buff { function scriptPubKey (line 35) | function scriptPubKey (input : Bytes) : string[] { function fromPubKey (line 41) | function fromPubKey ( constant P2TR (line 49) | const P2TR = { check, encode, decode, scriptPubKey, fromPubKey } FILE: src/lib/addr/p2w-pkh.ts constant VALID_PREFIXES (line 7) | const VALID_PREFIXES = [ 'bc1q', 'tb1q', 'bcrt1q' ] function check (line 9) | function check (address : string) : boolean { function encode (line 18) | function encode ( function decode (line 28) | function decode (address : string) : Buff { function scriptPubKey (line 35) | function scriptPubKey (input : Bytes) : string[] { function fromPubKey (line 41) | function fromPubKey ( constant P2WPKH (line 49) | const P2WPKH = { check, encode, decode, hash: hash160pkh, scriptPubKey, ... FILE: src/lib/addr/p2w-sh.ts constant VALID_PREFIXES (line 7) | const VALID_PREFIXES = [ 'bc1q', 'tb1q', 'bcrt1q' ] function check (line 9) | function check (address : string) : boolean { function encode (line 18) | function encode ( function decode (line 28) | function decode (address : string) : Buff { function scriptPubKey (line 35) | function scriptPubKey (input : Bytes) : string[] { function fromScript (line 41) | function fromScript ( constant P2WSH (line 49) | const P2WSH = { check, encode, decode, hash: sha256sh, scriptPubKey, fro... FILE: src/lib/addr/schema.ts type AddressType (line 6) | type AddressType = [ type AddressData (line 14) | interface AddressData { type AddressTool (line 22) | interface AddressTool { type AddrKeyTool (line 29) | interface AddrKeyTool extends AddressTool { type AddrScriptTool (line 33) | interface AddrScriptTool extends AddressTool { constant BECH32_PREFIXES (line 37) | const BECH32_PREFIXES : Record = { FILE: src/lib/addr/utils.ts constant ADDRESS_TYPES (line 20) | const ADDRESS_TYPES : AddressType[] = [ function decodeFormat (line 37) | function decodeFormat (address : string, format : string) : Buff { function getData (line 46) | function getData (address : string) : AddressType { function getTool (line 59) | function getTool (type : OutputType) : AddressTool | AddrScriptTool { function decodeAddress (line 70) | function decodeAddress ( function fromScriptPubKey (line 80) | function fromScriptPubKey ( function toScriptPubKey (line 89) | function toScriptPubKey (address : string) : ScriptData { FILE: src/lib/check.ts function isHex (line 3) | function isHex (value : T) : value is Extract { function isBytes (line 11) | function isBytes (value : T) : value is Extract { function isValidAnnex (line 15) | function isValidAnnex (annex : any) : boolean { FILE: src/lib/script/decode.ts function decodeScript (line 9) | function decodeScript ( function decodeWords (line 25) | function decodeWords ( FILE: src/lib/script/encode.ts constant MAX_WORD_SIZE (line 6) | const MAX_WORD_SIZE = 0x208 function encodeScript (line 8) | function encodeScript ( function encodeWords (line 33) | function encodeWords ( function encodeWord (line 45) | function encodeWord ( function encodeSize (line 98) | function encodeSize (size : number) : Uint8Array { function splitWord (line 114) | function splitWord (word : Uint8Array) : Word[] { FILE: src/lib/script/format.ts function toAsm (line 7) | function toAsm ( function toBytes (line 23) | function toBytes ( function toParam (line 37) | function toParam ( FILE: src/lib/script/words.ts constant OPCODE_MAP (line 1) | const OPCODE_MAP = { function getOpLabel (line 182) | function getOpLabel (num : number) : string { function getOpCode (line 192) | function getOpCode (string : string) : number { function getWordType (line 199) | function getWordType (word : number) : string { function isValidWord (line 218) | function isValidWord (word : number) : boolean { FILE: src/lib/sig/segwit/hash.ts constant VALID_HASH_TYPES (line 15) | const VALID_HASH_TYPES = [ 0x01, 0x02, 0x03 ] function hashTx (line 17) | function hashTx ( function hashPrevouts (line 82) | function hashPrevouts ( function hashSequence (line 100) | function hashSequence ( function hashOutputs (line 117) | function hashOutputs ( FILE: src/lib/sig/segwit/sign.ts function signTx (line 7) | function signTx ( FILE: src/lib/sig/segwit/verify.ts function verifyTx (line 10) | function verifyTx ( FILE: src/lib/sig/taproot/hash.ts constant VALID_HASH_TYPES (line 16) | const VALID_HASH_TYPES = [ 0x00, 0x01, 0x02, 0x03, 0x81, 0x82, 0x83 ] function hashTx (line 18) | function hashTx ( function hashOutpoints (line 140) | function hashOutpoints ( function hashSequence (line 151) | function hashSequence ( function hashAmounts (line 161) | function hashAmounts ( function hashScripts (line 171) | function hashScripts ( function hashOutputs (line 181) | function hashOutputs ( function hashOutput (line 192) | function hashOutput ( function getAnnexData (line 201) | function getAnnexData ( function getPrevout (line 227) | function getPrevout (vin : InputData) : OutputData { FILE: src/lib/sig/taproot/sign.ts constant FIELD_SIZE (line 9) | const FIELD_SIZE = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF... constant CURVE_ORDER (line 10) | const CURVE_ORDER = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBF... function signTx (line 12) | function signTx ( function sign (line 30) | function sign ( function verify (line 67) | function verify ( FILE: src/lib/sig/taproot/verify.ts function verifyTx (line 12) | function verifyTx ( FILE: src/lib/sig/types.ts type HashConfig (line 3) | interface HashConfig { FILE: src/lib/tap/key.ts constant DEFAULT_VERSION (line 10) | const DEFAULT_VERSION = 0xc0 function getTapSecKey (line 12) | function getTapSecKey ( function getTapPubKey (line 19) | function getTapPubKey ( function getTapKey (line 26) | function getTapKey ( function checkPath (line 87) | function checkPath ( function readCtrlBlock (line 122) | function readCtrlBlock (cblock : Bytes) : CtrlBlock { function readParityBit (line 139) | function readParityBit (parity : number | string = 0x02) : number { FILE: src/lib/tap/tree.ts constant DEFAULT_VERSION (line 6) | const DEFAULT_VERSION = 0xc0 function getTapTag (line 8) | function getTapTag (tag : string) : Buff { function getTapLeaf (line 13) | function getTapLeaf ( function getTapScript (line 24) | function getTapScript ( function getTapBranch (line 31) | function getTapBranch ( function getTapRoot (line 48) | function getTapRoot ( function merkleize (line 55) | function merkleize ( function getVersion (line 117) | function getVersion (version = 0xc0) : number { FILE: src/lib/tap/tweak.ts function getTapTweak (line 7) | function getTapTweak ( function getTweakedKey (line 18) | function getTweakedKey ( function getTweakedPub (line 37) | function getTweakedPub ( function getTweakedSec (line 44) | function getTweakedSec ( function tweakSecKey (line 51) | function tweakSecKey ( function tweakPubKey (line 62) | function tweakPubKey ( function getScriptOnlyPubkey (line 72) | function getScriptOnlyPubkey () : Buff { constant SCRIPT_PUBKEY (line 79) | const SCRIPT_PUBKEY = getScriptOnlyPubkey() FILE: src/lib/tap/types.ts type TapKey (line 4) | type TapKey = [ type TapConfig (line 9) | interface TapConfig { type CtrlBlock (line 20) | interface CtrlBlock { type TapTree (line 27) | type TapTree = Array type TapProof (line 29) | type TapProof = [ FILE: src/lib/tap/utils.ts function xOnlyPub (line 3) | function xOnlyPub (key : Bytes) : Buff { FILE: src/lib/tx/create.ts constant DEFAULT_TX (line 3) | const DEFAULT_TX = { constant DEFAULT_VIN (line 10) | const DEFAULT_VIN = { constant DEFAULT_VOUT (line 16) | const DEFAULT_VOUT = { function createTx (line 21) | function createTx (template : TxTemplate) : TxData { FILE: src/lib/tx/decode.ts function decodeTx (line 9) | function decodeTx (bytes : string | Uint8Array) : TxData { function readVersion (line 42) | function readVersion (stream : Stream) : number { function checkWitnessFlag (line 46) | function checkWitnessFlag (stream : Stream) : boolean { function readInputs (line 59) | function readInputs (stream : Stream) : InputData[] { function readInput (line 68) | function readInput (stream : Stream) : InputData { function readOutputs (line 79) | function readOutputs (stream : Stream) : OutputData[] { function readOutput (line 88) | function readOutput (stream : Stream) : OutputData { function readWitness (line 96) | function readWitness (stream : Stream) : string[] { function readData (line 106) | function readData ( function readScript (line 118) | function readScript ( function readLocktime (line 126) | function readLocktime (stream : Stream) : number { FILE: src/lib/tx/encode.ts function encodeTx (line 16) | function encodeTx ( function checkForWitness (line 47) | function checkForWitness (vin : InputData[]) : boolean { function encodeVersion (line 62) | function encodeVersion (num : number) : Uint8Array { function encodeTxid (line 66) | function encodeTxid (txid : string) : Uint8Array { function encodePrevOut (line 70) | function encodePrevOut (vout : number) : Uint8Array { function encodeSequence (line 74) | function encodeSequence ( function encodeInputs (line 86) | function encodeInputs (arr : InputData[]) : Uint8Array { function encodeValue (line 98) | function encodeValue ( function encodeOutputs (line 110) | function encodeOutputs (arr : OutputData[]) : Uint8Array { function encodeOutput (line 118) | function encodeOutput ( function encodeWitness (line 128) | function encodeWitness ( function encodeData (line 142) | function encodeData (data : ScriptData) : Buff { function isEmpty (line 148) | function isEmpty (data : ScriptData) : boolean { function encodeLocktime (line 159) | function encodeLocktime (locktime : LockData) : Uint8Array { FILE: src/lib/tx/format.ts function toJson (line 9) | function toJson ( function toBytes (line 25) | function toBytes ( FILE: src/lib/tx/parse.ts type TxSizeData (line 18) | interface TxSizeData { constant OUTPUT_TYPES (line 25) | const OUTPUT_TYPES : Array<[ string, RegExp ]> = [ constant LEAF_VERSIONS (line 33) | const LEAF_VERSIONS = [ function parseAnnex (line 42) | function parseAnnex ( function parseBlock (line 63) | function parseBlock ( function parseWitScript (line 85) | function parseWitScript ( function parseParams (line 101) | function parseParams ( function readWitness (line 118) | function readWitness ( function readScriptPubKey (line 129) | function readScriptPubKey ( function getTxid (line 144) | function getTxid (txdata : TxData | Bytes) : string { function getTxSize (line 150) | function getTxSize (txdata : TxData | Bytes) : TxSizeData { FILE: src/lib/utils.ts function checkSize (line 3) | function checkSize (input : Bytes, size : number) : void { function safeThrow (line 10) | function safeThrow ( function hashTag (line 19) | function hashTag ( FILE: src/schema/types.ts type Networks (line 3) | type Networks = 'main' | 'testnet' | 'signet' | 'regtest' type InputType (line 5) | type InputType = 'p2pkh' | 'p2sh' | 'p2w-p2pkh' | 'p2w-p2sh' | type OutputType (line 8) | type OutputType = 'p2pkh' | 'p2sh' | 'p2w-pkh' | 'p2w-sh' | 'p2tr' | '... type TxTemplate (line 10) | interface TxTemplate { type TxData (line 27) | interface TxData { type InputData (line 34) | interface InputData { type OutputData (line 43) | interface OutputData { type ScriptPubKeyData (line 48) | interface ScriptPubKeyData { type WitnessData (line 53) | interface WitnessData { type SequenceData (line 60) | type SequenceData = string | number type LockData (line 61) | type LockData = string | number type ValueData (line 62) | type ValueData = number | bigint type ScriptData (line 63) | type ScriptData = Bytes | Word[] type Bytes (line 64) | type Bytes = string | Uint8Array type Word (line 65) | type Word = string | number | Uint8Array FILE: test/core.ts constant DEFAULT_CONFIG (line 3) | const DEFAULT_CONFIG = { function get_client (line 17) | function get_client ( FILE: test/example/ex_test.ts function example_tests (line 13) | async function example_tests (t : Test) : Promise { FILE: test/example/taproot/inscribe.test.ts function inscription (line 11) | async function inscription (t : Test, wallet : CoreWallet) : Promise { FILE: test/example/taproot/tapscript.test.ts function script_spend (line 7) | async function script_spend (t : Test, wallet : CoreWallet) : Promise { FILE: test/src/addr/addr.test.ts function address_tests (line 8) | function address_tests(t : Test) { FILE: test/src/addr/p2pkh.test.ts function p2pkh_test (line 6) | function p2pkh_test(t : Test) : void { FILE: test/src/addr/p2sh.test.ts function p2sh_test (line 6) | function p2sh_test(t : Test) : void { FILE: test/src/addr/p2tr.test.ts function p2tr_test (line 6) | function p2tr_test(t : Test) : void { FILE: test/src/addr/p2wpkh.test.ts function p2wpkh_test (line 6) | function p2wpkh_test(t : Test) : void { FILE: test/src/addr/p2wsh.test.ts function p2wsh_test (line 6) | function p2wsh_test(t : Test) : void { FILE: test/src/sig/segwit/sighash.test.ts function sighash_vector_test (line 7) | async function sighash_vector_test(t :Test) : Promise { FILE: test/src/sig/segwit/utils.ts type TestInput (line 4) | type TestInput = [ type TestData (line 11) | type TestData = [ type TestVector (line 17) | interface TestVector { function parseVectors (line 23) | function parseVectors(vectors : any) : TestVector[] { FILE: test/src/sig/sig.test.ts function sig_tests (line 12) | async function sig_tests (t : Test) : Promise { FILE: test/src/sig/taproot/sig.test.ts function test_computehash (line 17) | function test_computehash(t : Test) : void { function test_signatures (line 33) | async function test_signatures(t : Test) : Promise { FILE: test/src/tap/tree.test.ts type Vector (line 7) | interface Vector { function flattenArray (line 19) | function flattenArray ( function tweak_test (line 31) | function tweak_test(t : Test) : void { FILE: test/src/tap/unit.test.ts function unit_tests (line 8) | async function unit_tests(t : Test) : Promise { FILE: test/src/tx/segwit/segwit.test.ts function segwit_vector_test (line 6) | function segwit_vector_test(t :Test) : void { FILE: test/src/tx/segwit/utils.ts type TestInput (line 4) | type TestInput = [ type TestData (line 11) | type TestData = [ type TestVector (line 17) | interface TestVector { function parseVectors (line 23) | function parseVectors(vectors : any) : TestVector[] { FILE: test/src/tx/tx.test.ts function tx_tests (line 4) | function tx_tests(t : Test) : void { FILE: test/utils.ts class TxTest (line 1) | class TxTest { method constructor (line 2) | constructor () {