We’re rewarding the question askers & reputations are being recalculated! Read more.
18

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 point in the future, time permitting a better Tor hosting infrastructure may allow Tor to be re-enabled. Right now there are higher priorities. Security concerns ...


15

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 libraries are for interacting more with simplewallet in particular, but the Python library is for both daemon and wallet I believe.


12

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-characters-here>]{93} In Javascript: addr_str.match(/4[0-9AB][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{93}/); Credit goes to /u/binaryfate for ...


7

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). https://chrome.google.com/webstore/detail/safer-mymonero/hcgliilmeggjhmpkfglnekbegacockei It protects you from "JS modifications, HTML injections, HTTP ...


6

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 revenue you'd get from asking your visitors to mine Monero will be tiny compared to the advertising revenue you could get instead. I'd also imagine Google will ...


6

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 from MyMonero (https://mymonero.com/). The general idea is to hash the string (preferably using a KDF), and use the resulting hash as the spend key. The view key ...


3

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 the reasons the RPC interfaces (daemon and wallet) exist. These can be called by any language which can call a URL and create/parse JSON. If you use the wallet ...


2

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 decoding, transaction ID generation, and other goodies. Speed improvements and Monero Core library wrappers are planned for offloading calculations to same code at ...


2

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 want to cash out, you need to ask them to let you cash out through their web site.


2

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


2

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 coins without mining?


2

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 folder. On client startup entered this code: const walletUtils = require('mymonero-core-js/monero_utils/monero_wallet_utils') const wallet = walletUtils....


2

Yes, you can use this Javascript NPM package to generate subaddresses: https://www.npmjs.com/package/subaddress


2

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.


2

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: let template = new Buffer(blockTemplateBlob,'hex'); let poolNonce = new Buffer(_poolNonce,'hex'); poolNonce.copy(template,reservedOffset); Look rather suspect. ...


1

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 is a) infeasible without using a daemon and b) would be ridiculously slow in javascript even with the help of a daemon. Have all the cryptography code ...


1

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://mymonero.com/.


1

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, you need both the private view key and public spend key.


1

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, edit and build one of the CN wasm miners etc etc. So nothing "quick". This all said, why do you need to test this? I can tell you right now that javascript ...


1

How do I continue mining XMR after I close the authedmine tab?...answer: you dont. besides that: it takes forever to mine even as low as 0.001 xmr. i would suggest to start mining in a different way. I am currently mining on www.moneromahaz.com..new poolsite (look at: Get started.


1

You are trying to use digest authentication in your javascript but the wallet RPC uses basic authorization.


1

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 just call the JSON-RPC methods directly. For getting the balance, you would call this. The examples use cURL at the command line, but if you know how to make ...


1

You'll find some examples over at https://github.com/moneroexamples However, Monero's blockchain does not offer as much information like Bitcoin's blockchain and you will fail to query balances of specific addresses or transaction details unless you have access to the private keys.


1

Sure there is. Do a npm search cryptonight-hashing and take a pick :) NAME | DESCRIPTION | AUTHOR | DATE | VERSION | KEYWORD cryptonight-hashing | node-cryptonight-ha… | =moneroocean | 2018-10-04 | 3.0.5 | crypton node-cryptonight-lite | node bindings for… | =excitableaard… | 2018-02-01 | 1.0....


1

From Coinhive's front page: Will This Work On My Site? Technically yes, economically probably not. If you run a blog that gets 10 visits/day, the payout will be miniscule. For the captcha and shortlinks with a sensible hash goal (1024–16384) you'll need to have a whole lot of users to make this worthwhile. Implementing a reward system for your ...


1

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 better ways to use them for mining than coinhive, such as joining a mining pool.


1

There are some inappropriate regexes to the other answers here. At this time, only ferretinjapan's answer is correct, though it's a mouthful since it does not use ranges. This regex will match (non-integrated) Monero addresses: ^4[0-9AB][1-9A-HJ-NP-Za-km-z]{93}$ An integrated address has 106 or 136 characters and that the second character may be any ...


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