18 votes
Accepted

Tor support on MyMonero.com

There was evidence of several cases of Tor exit nodes injecting JavaScript into the page. The developers of MyMonero did not want to risk MITM attacks leading to more theft of Monero funds. At some ...
user avatar
  • 1,491
15 votes
Accepted

Are there any Monero specific programming language "libraries" available?

There are several. Python: https://github.com/tippero/python-monero Node js: https://github.com/ShenNoether/monero-nodejs Php: https://github.com/PsychicCat/monero-php I think the node and php ...
user avatar
  • 4,373
12 votes

How to perform a simple verification of a Monero address with a regular expression?

Here is a simple regular expression and javascript code snippet that can be used to confirm a Monero address has been entered correctly. Regular expression: 4[0-9AB][<insert-all-base-58-...
user avatar
7 votes

Is there a sample JavaScript code showing how to generate a monero address from a string of characters?

There is Javascript code to generate Monero addresses from an arbitrary string, yes. See https://github.com/moneromooo-monero/monero-wallet-generator/tree/master. This page contains code originally ...
user avatar
  • 34.6k
7 votes
Accepted

Can I avoid Javascript poisoning when using MyMonero.com?

Yes. In the mean time, a Chrome application have been released to largely reduce the security limits of MyMonero (that come from the concept of a web wallet rather than errors from the developer). ...
user avatar
  • 3,339
6 votes
Accepted

How to implement a java script version of monero CPU miner

The site itself says they've used WebAssembly to compile C code to Javascript. This means you'd need to be competent in C in order to attempt this feat. If you work through the numbers though, the ...
user avatar
  • 8,398
3 votes
Accepted

sc_reduce32 returning wrong private view key

const decSeed = BigInt('0x'+hexSeed); //convert the hex seed to a dec BigInt: 11543724318435336731650421271699387718989312826353117660615550988399570687489 You didn't interpret the hex here as little ...
user avatar
  • 8,398
3 votes
Accepted

How does one craft a Monero transaction locally, sign with their private key and then broadcast using javascript?

Monero transactions are much more than some simple data that is signed with a private key. You need outputs to spend, mixin outputs from the blockchain, lot's of math for RingCT etc. This is one of ...
user avatar
  • 17.4k
2 votes

Are there any Monero specific programming language "libraries" available?

For python, you can use MoneroPy. It is still pre-beta and under development, but has pure python implementations for wallet account creation, TX Extra parsing, integrated address encoding and ...
user avatar
2 votes

How to perform a simple verification of a Monero address with a regular expression?

This is better: 4[a-zA-Z|\d]{94} And payment ID: [0-9a-fA-F]{64}
user avatar
  • 551
2 votes

Monero Javascript Library

Monero JavaScript/node.js - https://github.com/PsychicCat/monero-nodejs Monero private testnet setup - https://github.com/moneroexamples/private-testnet Test faucet - see Can I obtain Monero testnet ...
user avatar
2 votes
Accepted

how to use coinhive java script with GPU?

Coinhive runs on your CPU only. Although it's technically possible to write javascript code that runs on GPU it's not standard and it's not the approach taken by coinhive. If you have GPUs there are ...
user avatar
  • 2,158
2 votes
Accepted

What is the difference hashing power when running the JS Monero Miner via a browser vs Running solo Mining with the cli?

They claim "65% of the performance of a native Miner", and this seems to be roughly the case on my PC. This is definitely a pooled mining setup, and they're running their own pool. Which means if you ...
user avatar
  • 8,398
2 votes

How to authedmine.com mining 24/7? (Coinhive)

Coinhive is a javascript-based miner. Since Javascript is web-based, you have to keep the page open in order for it to stay active.
user avatar
2 votes

Is there a Javascript implementation of the CryptoNight algorithm?

Sure there is. Do a npm search cryptonight-hashing and take a pick :) NAME | DESCRIPTION | AUTHOR | DATE | VERSION | KEYWORD cryptonight-hashing | ...
user avatar
2 votes
Accepted

How to Generate monero wallet on server-side(node.js) or locally?

Alright, solved generating monero wallets problem like that (using Meteor.js): Downloaded this AWESOME repo: https://github.com/mymonero/mymonero-core-js Unpacked this repo to the node_modules ...
user avatar
2 votes
Accepted

Is there a javascript implementation to generate your Monero subaddresses without giving out your private-spend key?

Yes, you can use this Javascript NPM package to generate subaddresses: https://www.npmjs.com/package/subaddress
user avatar
  • 8,398
2 votes

I can't reproduce a hash sent from a miner [javascript]

Recall from this answer, the pool adds various data to the reserved space and it stores/caches the block template it used to create the hashing blob it sends to the miner. Therefore, your lines: ...
user avatar
  • 17.4k
2 votes

How to create a transaction offline using javascript?

Creating and signing a Monero transaction in javascript without using the wallet RPC interface is far from trivial. You'd need to: Have a way of scanning the blockchain to find outputs you own, which ...
user avatar
  • 17.4k
2 votes
Accepted

Wordpress :: mining with user's CPU

The viability of browser based CPU mining on Bitcoin is zero. Bitcoin is not even profitable to mine on dedicated CPUs or GPUs these days, let alone in a browser. Bitcoin mining requires specialized ...
user avatar
  • 17.4k
2 votes

JS implementation of ge_fromfe_frombytes_vartime

According to the CryptoNote Whitepaper, the hash-to-point algorithm is based on this paper.
user avatar
  • 359
2 votes
Accepted

ed25519 problem with libsodium implementation S_a + S_b = (s_a+s_b)*G

This: sodium.crypto_core_ed25519_add(sumPrivate, s_a, s_b); //sumPrivate = s_a + s_b is wrong. crypto_core_ed25519_add adds points, not scalars. For adding scalars you should use ...
user avatar
  • 17.4k
2 votes
Accepted

Monero public key generation

See RFC8032 for an explanation of how the sign of a point is encoded into the most significant bit of the last byte. By doing getY() you're attempting to do your own encoding, and not setting this bit....
user avatar
  • 8,398
1 vote

How to create a transaction offline using javascript?

monero-javascript now supports this use case specifically. See https://github.com/monero-ecosystem/monero-javascript/blob/master/docs/developer_guide/view_only_offline.md
user avatar
  • 41
1 vote

How to create a transaction offline using javascript?

mymonero has javascript code to create transactions which you can reuse (some surgery needed). Some of it runs binary blobs compiled from C++ though, which may not be what you want. See https://...
user avatar
  • 34.6k
1 vote

How to generate a unique deposit address for a Monero wallet

To create a subaddress, you need the wallet private keys. Assuming you have these, you can create them in javascript using this package, as an example. You cannot do this having only the public key, ...
user avatar
  • 17.4k
1 vote

Any quick way for me to test my browser's hash rate for CryptoNight v2?

Given that Monero is now on CNv4, I doubt very much you're going to find a "quick" way to test this. You'd need to find or setup a version of the chain running the older version, setup a mining proxy, ...
user avatar
  • 17.4k
1 vote

How does one craft a Monero transaction locally, sign with their private key and then broadcast using javascript?

This can now be done with monero-javascript which supports local, offline transaction signing.
user avatar
  • 41
1 vote

Unable to connect to monero-wallet-rpc from code

You are trying to use digest authentication in your javascript but the wallet RPC uses basic authorization.
user avatar
  • 17.4k
1 vote

How to check balance of monero paper wallet from nodejs?

There are several nodejs packages for working with wallets. They essentially just wrap the JSON-RPC methods on the daemon / wallet RPC interfaces. You don't actually need a wrapper though as you can ...
user avatar
  • 17.4k

Only top scored, non community-wiki answers of a minimum length are eligible