Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BlueWallet/SilentPayments
/ functions
Functions
61 in github.com/BlueWallet/SilentPayments
⨍
Functions
61
◇
Types & classes
4
↓ 26 callers
Function
uint8ArrayToHex
(array)
src/uint8array-extras.js:188
↓ 24 callers
Function
hexToUint8Array
(hexString)
src/uint8array-extras.js:227
↓ 11 callers
Method
isPaymentCodeValid
(pc: string)
src/index.ts:210
↓ 10 callers
Function
concatUint8Arrays
(arrays, totalLength)
src/uint8array-extras.js:58
↓ 9 callers
Method
_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 callers
Function
assert
(condition: any, message: string)
src/index.ts:478
↓ 7 callers
Function
assertUint8Array
(value)
src/uint8array-extras.js:34
↓ 7 callers
Method
computeTweakForTx
* 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 callers
Method
getPubkeysFromTransactionInputs
(tx: Transaction)
src/index.ts:233
↓ 6 callers
Method
taggedHash
(tag: "BIP0352/Inputs" | "BIP0352/SharedSecret", data: Uint8Array)
src/index.ts:107
↓ 5 callers
Function
assertString
(value)
src/uint8array-extras.js:127
↓ 5 callers
Method
createTransaction
* 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 callers
Method
isOurUtxoUsingTweakbscanBspendAndOutputScript
(outputScriptHex: string, tweakHex: string, bscan: string, Bspend: string)
src/index.ts:412
↓ 4 callers
Function
areUint8ArraysEqual
(a, b)
src/uint8array-extras.js:77
↓ 4 callers
Function
getSharedSecret
(privateKey: Uint8Array, publicKey: Uint8Array)
src/index.ts:493
↓ 3 callers
Method
_outpointsHash
(parameters: UTXO[], A: Uint8Array)
src/index.ts:114
↓ 3 callers
Function
compareUint8Arrays
(a, b)
src/uint8array-extras.js:99
↓ 3 callers
Method
pubkeyToAddress
(hex: string)
src/index.ts:224
↓ 3 callers
Function
readUInt32
(bytes, offset, littleEndian)
src/uint8array-extras.js:338
↓ 3 callers
Method
readVector
()
tests/utils.ts:59
↓ 3 callers
Method
sumPubKeys
(pubkeys: Uint8Array[], compressed: boolean = true)
src/index.ts:300
↓ 2 callers
Method
addressToPubkey
(address: string)
src/index.ts:229
↓ 2 callers
Function
bytesToBigInt
(bytes: Uint8Array)
src/index.ts:484
↓ 2 callers
Method
detectOurUtxos
* 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 callers
Method
detectOurUtxosUsingTweakbscanBspend
(tx: Transaction, tweakHex: string, bscan: string, Bspend: string)
src/index.ts:457
↓ 2 callers
Function
isP2wpkh
(spk: Uint8Array)
tests/utils.ts:100
↓ 2 callers
Function
isType
(value, typeConstructor, typeStringified)
src/uint8array-extras.js:10
↓ 2 callers
Function
isUint8Array
(value)
src/uint8array-extras.js:22
↓ 2 callers
Method
readCompactSize
()
tests/utils.ts:32
↓ 2 callers
Method
seedToCode
* takes BIP-39 mnemonic seed and returns shareable static payment code; also: Bscan, bscan, Bspend, bspend
src/index.ts:339
↓ 1 callers
Method
_privateMultiply
(a: Uint8Array, b: Uint8Array)
src/index.ts:141
↓ 1 callers
Method
_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 callers
Function
assertUint8ArrayOrArrayBuffer
(value)
src/uint8array-extras.js:40
↓ 1 callers
Function
base64ToBase64Url
(base64)
src/uint8array-extras.js:140
↓ 1 callers
Function
base64ToUint8Array
(base64String)
src/uint8array-extras.js:171
↓ 1 callers
Function
base64UrlToBase64
(base64url)
src/uint8array-extras.js:144
↓ 1 callers
Function
bigIntTo32Bytes
(num: bigint)
src/index.ts:488
↓ 1 callers
Function
exactMatch
(a: string[], b: string[])
tests/silent-payment.test.ts:13
↓ 1 callers
Function
getUTXOType
(vin: Vin)
tests/utils.ts:124
↓ 1 callers
Function
hash160
(s: Uint8Array)
tests/utils.ts:86
↓ 1 callers
Function
indexOf
(array, value)
src/uint8array-extras.js:288
↓ 1 callers
Function
isArrayBuffer
(value)
src/uint8array-extras.js:26
↓ 1 callers
Method
isOurUtxoUsingTweakbscanBspendAndOutputScriptUint8array
(outputScript: Uint8Array, tweak: Uint8Array, bscan: Uint8Array, Bspend: Uint8Array)
src/index.ts:433
↓ 1 callers
Function
isP2pkh
(spk: Uint8Array)
tests/utils.ts:116
↓ 1 callers
Function
isP2sh
(spk: Uint8Array)
tests/utils.ts:108
↓ 1 callers
Function
isP2tr
(spk: Uint8Array)
tests/utils.ts:92
↓ 1 callers
Function
isUint8ArrayOrArrayBuffer
(value)
src/uint8array-extras.js:30
↓ 1 callers
Function
matchSubset
(generated: string[], expected: string[][])
tests/silent-payment.test.ts:19
↓ 1 callers
Method
readElement
()
tests/utils.ts:54
↓ 1 callers
Function
readUInt16
(bytes, offset, littleEndian)
src/uint8array-extras.js:374
↓ 1 callers
Method
readUInt64LE
()
tests/utils.ts:25
↓ 1 callers
Function
stringToUint8Array
(string)
src/uint8array-extras.js:135
↓ 1 callers
Function
uint8ArrayToBase64
(array, { urlSafe = false } = {})
src/uint8array-extras.js:151
↓ 1 callers
Function
uint8ArrayToString
(array, encoding = "utf8")
src/uint8array-extras.js:121
Function
base64ToString
(base64String)
src/uint8array-extras.js:181
Method
constructor
(b: Uint8Array)
tests/utils.ts:20
Function
getUintBE
(view)
src/uint8array-extras.js:255
Function
includes
(array, value)
src/uint8array-extras.js:324
Method
stackToPubkeys
(stack: Stack)
src/index.ts:236
Function
stringToBase64
(string, { urlSafe = false } = {})
src/uint8array-extras.js:176
Function
toUint8Array
(value)
src/uint8array-extras.js:46