MCPcopy Create free account

hub / github.com/BlueWallet/SilentPayments / functions

Functions61 in github.com/BlueWallet/SilentPayments

↓ 26 callersFunctionuint8ArrayToHex
(array)
src/uint8array-extras.js:188
↓ 24 callersFunctionhexToUint8Array
(hexString)
src/uint8array-extras.js:227
↓ 11 callersMethodisPaymentCodeValid
(pc: string)
src/index.ts:210
↓ 10 callersFunctionconcatUint8Arrays
(arrays, totalLength)
src/uint8array-extras.js:58
↓ 9 callersMethod_ser32
* Serializes a 32-bit unsigned integer i as a 4-byte big-endian * @param i {number} The number to serialize * @returns {Uint8Array} The serializ
src/index.ts:132
↓ 9 callersFunctionassert
(condition: any, message: string)
src/index.ts:478
↓ 7 callersFunctionassertUint8Array
(value)
src/uint8array-extras.js:34
↓ 7 callersMethodcomputeTweakForTx
* takes decoded bitcoin transaction and computes tweak. some transactions must be augmented with prevout data * so the method can successfully disc
src/index.ts:275
↓ 7 callersMethodgetPubkeysFromTransactionInputs
(tx: Transaction)
src/index.ts:233
↓ 6 callersMethodtaggedHash
(tag: "BIP0352/Inputs" | "BIP0352/SharedSecret", data: Uint8Array)
src/index.ts:107
↓ 5 callersFunctionassertString
(value)
src/uint8array-extras.js:127
↓ 5 callersMethodcreateTransaction
* Takes the UTXO that the sender is going to spend in a transaction, * and an array of Targets which may or may not have * SilentPayment identif
src/index.ts:46
↓ 5 callersMethodisOurUtxoUsingTweakbscanBspendAndOutputScript
(outputScriptHex: string, tweakHex: string, bscan: string, Bspend: string)
src/index.ts:412
↓ 4 callersFunctionareUint8ArraysEqual
(a, b)
src/uint8array-extras.js:77
↓ 4 callersFunctiongetSharedSecret
(privateKey: Uint8Array, publicKey: Uint8Array)
src/index.ts:493
↓ 3 callersMethod_outpointsHash
(parameters: UTXO[], A: Uint8Array)
src/index.ts:114
↓ 3 callersFunctioncompareUint8Arrays
(a, b)
src/uint8array-extras.js:99
↓ 3 callersMethodpubkeyToAddress
(hex: string)
src/index.ts:224
↓ 3 callersFunctionreadUInt32
(bytes, offset, littleEndian)
src/uint8array-extras.js:338
↓ 3 callersMethodreadVector
()
tests/utils.ts:59
↓ 3 callersMethodsumPubKeys
(pubkeys: Uint8Array[], compressed: boolean = true)
src/index.ts:300
↓ 2 callersMethodaddressToPubkey
(address: string)
src/index.ts:229
↓ 2 callersFunctionbytesToBigInt
(bytes: Uint8Array)
src/index.ts:484
↓ 2 callersMethoddetectOurUtxos
* takes a decoded transaction (`bitcoinjs.Transaction.fromHex()` will do fine), * takes computed tweak for this transaction, your mnemonic seed, an
src/index.ts:363
↓ 2 callersMethoddetectOurUtxosUsingTweakbscanBspend
(tx: Transaction, tweakHex: string, bscan: string, Bspend: string)
src/index.ts:457
↓ 2 callersFunctionisP2wpkh
(spk: Uint8Array)
tests/utils.ts:100
↓ 2 callersFunctionisType
(value, typeConstructor, typeStringified)
src/uint8array-extras.js:10
↓ 2 callersFunctionisUint8Array
(value)
src/uint8array-extras.js:22
↓ 2 callersMethodreadCompactSize
()
tests/utils.ts:32
↓ 2 callersMethodseedToCode
* takes BIP-39 mnemonic seed and returns shareable static payment code; also: Bscan, bscan, Bspend, bspend
src/index.ts:339
↓ 1 callersMethod_privateMultiply
(a: Uint8Array, b: Uint8Array)
src/index.ts:141
↓ 1 callersMethod_sumPrivkeys
* Sums the private keys of the UTXOs * @param utxos {UTXO[]} * @returns {Uint8Array} The sum of the private keys * @private
src/index.ts:160
↓ 1 callersFunctionassertUint8ArrayOrArrayBuffer
(value)
src/uint8array-extras.js:40
↓ 1 callersFunctionbase64ToBase64Url
(base64)
src/uint8array-extras.js:140
↓ 1 callersFunctionbase64ToUint8Array
(base64String)
src/uint8array-extras.js:171
↓ 1 callersFunctionbase64UrlToBase64
(base64url)
src/uint8array-extras.js:144
↓ 1 callersFunctionbigIntTo32Bytes
(num: bigint)
src/index.ts:488
↓ 1 callersFunctionexactMatch
(a: string[], b: string[])
tests/silent-payment.test.ts:13
↓ 1 callersFunctiongetUTXOType
(vin: Vin)
tests/utils.ts:124
↓ 1 callersFunctionhash160
(s: Uint8Array)
tests/utils.ts:86
↓ 1 callersFunctionindexOf
(array, value)
src/uint8array-extras.js:288
↓ 1 callersFunctionisArrayBuffer
(value)
src/uint8array-extras.js:26
↓ 1 callersMethodisOurUtxoUsingTweakbscanBspendAndOutputScriptUint8array
(outputScript: Uint8Array, tweak: Uint8Array, bscan: Uint8Array, Bspend: Uint8Array)
src/index.ts:433
↓ 1 callersFunctionisP2pkh
(spk: Uint8Array)
tests/utils.ts:116
↓ 1 callersFunctionisP2sh
(spk: Uint8Array)
tests/utils.ts:108
↓ 1 callersFunctionisP2tr
(spk: Uint8Array)
tests/utils.ts:92
↓ 1 callersFunctionisUint8ArrayOrArrayBuffer
(value)
src/uint8array-extras.js:30
↓ 1 callersFunctionmatchSubset
(generated: string[], expected: string[][])
tests/silent-payment.test.ts:19
↓ 1 callersMethodreadElement
()
tests/utils.ts:54
↓ 1 callersFunctionreadUInt16
(bytes, offset, littleEndian)
src/uint8array-extras.js:374
↓ 1 callersMethodreadUInt64LE
()
tests/utils.ts:25
↓ 1 callersFunctionstringToUint8Array
(string)
src/uint8array-extras.js:135
↓ 1 callersFunctionuint8ArrayToBase64
(array, { urlSafe = false } = {})
src/uint8array-extras.js:151
↓ 1 callersFunctionuint8ArrayToString
(array, encoding = "utf8")
src/uint8array-extras.js:121
Functionbase64ToString
(base64String)
src/uint8array-extras.js:181
Methodconstructor
(b: Uint8Array)
tests/utils.ts:20
FunctiongetUintBE
(view)
src/uint8array-extras.js:255
Functionincludes
(array, value)
src/uint8array-extras.js:324
MethodstackToPubkeys
(stack: Stack)
src/index.ts:236
FunctionstringToBase64
(string, { urlSafe = false } = {})
src/uint8array-extras.js:176
FunctiontoUint8Array
(value)
src/uint8array-extras.js:46