JavaScript is a high-level programming language widely used for web development.
Questions tagged [javascript]
106 questions
28
votes
3 answers
How useful is a JavaScript miner?
I don't have a great understanding of how bitcoin mining works, but how useful would a JavaScript miner be for collecting revenue from visitors? Stupid question, but if I put the user in as part of a mining pool, must their computer actually find a…
Jack Humphries
- 437
- 2
- 5
- 7
13
votes
6 answers
How can I stop websites running an integrated Bitcoin miner without disabling javascript altogether?
"Bitcoin Plus" is one example of a javascript bitcoin mining client that can CPU mine bitcoins through a browser when viewing a website. Here is a screenshot from 4bitcoins dot com which automatically starts the miner when you load the page:
It…
Highly Irregular
- 10,910
- 6
- 52
- 102
11
votes
3 answers
Javascript Bitcoin miner is it even worth it?
I know that mining bitcoins via JavaScript is just pointless at this point in time, but is there any other altcoin that is worthwhile mining via a GPU/CPU via a JavaScript embedded into a web page?
Our website gets over 2 million unique visitors per…
ant
- 111
- 1
- 1
- 3
10
votes
1 answer
Byte array to hexadecimal and back again in JavaScript
I can generate a byte array with
var myByteArray = window.crypto.getRandomValues(new Uint8Array(16))
and I get
181,143,16,173,231,56,63,149,181,185,224,124,84,230,123,36
I can then turn this into a string with…
Will-In-China
- 468
- 2
- 4
- 11
7
votes
1 answer
how do you sign and verify a message that you own a bitcoin address using javascript?
Is there a bitcoin library or even just pure javascript way of signing and verifying you own a btc address?
Patoshi パトシ
- 10,956
- 18
- 80
- 151
7
votes
3 answers
Is there a way to access Ethereum Smart Contract's variables by name in JavaScript?
Say I have a simple smart contract:
contract Simple {
string32 message;
function Simple() {
message = "Hello world!";
}
}
How can I easily access the message variable by name in JavaScript? It looks like there is some way to…
ThePiachu
- 42,931
- 25
- 138
- 347
6
votes
5 answers
Ripple testnet explorer
This is Ripple main Explorer. But where can i find the transactions ledger from wallets on Ripple testnet.
Vikramaditya
- 161
- 1
- 3
6
votes
1 answer
How do I remove Wallet from Bcoin?
I'm playing with bcoin cli and created lots of wallets. Is there any way to remove wallet via WalletDB Api?
Node
- 316
- 1
- 6
6
votes
1 answer
Prevent rounding errors when displaying bitcoin values in javascript
What is the correct way to prevent Floating Point Precision errors when displaying bitcon values in javascript? I've seen many answers on the topic, but they all seem to have their drawbacks.
Here's what I've tried:
I've chosen to store bitcoin…
r3wt
- 249
- 1
- 8
4
votes
1 answer
How do the JavaScript SecureRandom() vulnerabilities affect me?
A recent post on the Bitcoin-dev mailing list talks about multiple vulnerabilities in JavaScript SecureRandom() class. Apparently this class has been used in multiple cryptocurrency wallets that use JavaScript to generate private keys.
What products…
Andrew Chow
- 67,209
- 5
- 76
- 149
4
votes
2 answers
Is the generated Public Key from Private Key Unique in Bitcoin?
I am generating public key from my private key. I did in Java script and C#.
but generated public keys are different.
My Code in c# (KeyCore.NET):
PrivateKey pv = new PrivateKey(Globals.ProdDumpKeyVersion,…
arman
- 43
- 4
3
votes
3 answers
How to use `scantxoutset`
Looking to fetch the UTXOs for a given address and can't seem to find the correct command syntax.
Here is an implementation in bitcoin-core via javascript, but I also experience the same on bitcoin-cli
const descriptorAttempts = [
'{ desc:…
Michael
- 173
- 8
3
votes
1 answer
Bruteforce bitcoin address - I know the words + public address but not the order
I have a long list of 1million+ permutations of a 12 word BIP39 seed. How can I try them all on a bitcoin address?
edit: I know the address and the 12 words but i don't know the order of the words
code511788465541441
- 133
- 1
- 5
3
votes
1 answer
How do I get transactions from the Bitcoin Blockchain with bcoin?
Is this possible with bcoin? Do I need a full node to get transactions or does it work with an SPV?
Bucko
- 183
- 8
3
votes
1 answer
How can I verify my merkle root function is correct?
I've started playing with Bitcoin on a more technical level recently (I'm an experienced software developer but just a user of Bitcoin up until now). I'm trying to implement a function to calculate a merkle root, as described by the protocol…
MattDavey
- 165
- 4