Comments (6)
Alright, so it's a bit more complicated than that.
We can't generate a nano seed from a BIP39 mnemonic phrase. We can however derive private keys from the mnemonic phrase with the BIP39 derivation path 44'/165'/0'
, 0
being the account index.
See https://github.com/nanocurrency/nano-node/wiki/Mnemonic-Seed
from nanocurrency-js.
I generate my seed with:
let seedBuffer = bip39.mnemonicToSeed(MNEMONIC_PRIVATE_SEED);
let seed = Buffer.from(seedBuffer).toString('hex');
However, in new version checkSeed() is failing.
The length of my seed is 128 characters and maximum allowed for deriveSecretKey() is 64 :/
from nanocurrency-js.
@rokanost what if you comment that line?
Line 41 in a8d794a
If it's as simple as feeding the blake2b hash with a 128 chars seed instead of a 64 one, it would be easy to be compatible.
from nanocurrency-js.
I did comment it out and everything seems fine, but tx now fails on publish with “bad work”
from nanocurrency-js.
Do you generate the work against the previous block hash? If this is the first block on the account chain, you have to use the account's public key.
from nanocurrency-js.
All good now, had a little bug in my code.
from nanocurrency-js.
Related Issues (20)
- Block work is less than threshold HOT 1
- Can't build
- Imprementation of new state block hash generator (ADD on CLI) HOT 3
- Include createBlock() to CLI HOT 1
- Block work is less than threshold HOT 7
- Add new feature to help check if a indexAccount is valid HOT 3
- Feature request add schnorr MuSig N of N HOT 1
- wasm/webassembly bundle HOT 5
- Split module to have a separate module for the CLI HOT 5
- checkString in convert is useles HOT 2
- Converting 1 raw to NANO gives 0 HOT 6
- Slow performance with derivePublicKey(secretKey) HOT 4
- Feature Request : GPU Implementation HOT 1
- Validate work invalid for new PoW threshold introduced in v21 HOT 1
- Basic support - creating a send block createBlock HOT 2
- Use nano_ prefix instead of xrb_
- computeWork Minimum Threshold parameter HOT 6
- Change prefix from xrb to nano. HOT 3
- [Feature Request] Add limit to ComputeWorkParams
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nanocurrency-js.