mymonero-core-js: create_address -- no longer there in #cpp branch
Hi,
I am adding this as a separate issue here and realize that this is not related to the master
branch. But for our intents we are relying on the cpp
branch as that branch can be packaged by the latest version of react-scripts
.
However, earlier using the code in the master
branch, we were able to generate a public address and private spend key, by providing a seed
(and networkType
) to the mymoneroCoreJs.monero_utils.create_address
function like so:
this.account = mymonero.monero_utils.create_address(this.moneroSeed, this.netType);
and then elsewhere use this.account
to get:
let pubAddress = moneroAccount.account.public_addr
let privateKey = moneroAccount.account.spend.sec
With the #cpp branch, the create_address
function is no longer available. So how do we go about getting the public address and the private spend key?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 33 (20 by maintainers)
And for what it’s worth I’m also going to be able to remove the whole bridging code in monero_utils.js once I get mymonero-core-cpp going as a Node.JS native addon which works with Electron. That will be mymonero-core-nodejs.