New answers tagged

2

It depends on how you have configured your bitcoind and what commands you are using. getrawtransaction first searches the mempool for your txid. The transactions in the mempool are held in memory and can be looked up by txid. If the transaction is not in the mempool. then you need to either provide the hash of the block it can be found in, or you need to ...


0

This is list of many repeated random (ephemeral) keys used in bitcoin: https://dev.to/maelvls/why-is-go111module-everywhere-and-everything-about-go-modules-24k AFAIK ever since around 2015, nearly all bitcoin wallets use RFC6979 (https://tools.ietf.org/html/rfc6979) which is a deterministic algorithm to get the ephemeral key instead of using an RNG so I ...


6

Mark H's answer is correct, but I think there is a more fundamental point: addresses are directly intended for human consumption. Transaction hashes (as well as public keys, block hashes, raw scripts, raw transactions, ...) are not. They are sometimes visualized, but this is primarily for debugging purposes. And hexadecimal is a very natural choice for ...


3

SHA256 hashes are encoded in plain binary in bitcoin protocol and in block storage (32-bytes in little-endian byte order when treated as integers, which makes them effectively "base256"). The textual hex encoding is merely used for displaying and inputting hashes into the software. Hex is a widely used and understood format for representing arrays of bytes. ...


0

The democratization of GPU technology has allowed more elaborate vanity addresses to be created in a way that was unthinkable a few years ago. Bitcoin Vanity Address uses Vanity Search (mentioned above) to generate a personalized prefix of up to seven characters case sensitive.


3

I just found the answer : https://api.lightning.community/rest/index.html?javascript#v1-payreq Use the endpoint v1/payreq to decode the payment request. Exemple : var fs = require('fs'); var request = require('request'); var macaroon = fs.readFileSync('LND_DIR/data/chain/bitcoin/simnet/admin.macaroon').toString('hex'); var options = { url: 'https://...


Top 50 recent answers are included