alepop / dart-ed25519-hd-key Goto Github PK
View Code? Open in Web Editor NEW๐ Key Derivation for ed25519 on Dart
License: MIT License
๐ Key Derivation for ed25519 on Dart
License: MIT License
I am trying to generate private key from derive hd path "m/44'/60'/0'/0" , but it is giving me errors
`dart:core int.parse
package:ed25519_hd_key/src/hd_key.dart 34:23 _ED25519HD.derivePath
FormatException: Invalid number (at character 1)`
My implementation is below:
final seed = bip39.mnemonicToSeedHex(mnemonic); final master = await ED25519_HD_KEY.derivePath("m/44'/60'/0'/0", hex.decode(seed));
As of my inspection find out that this line of code at line 34 in hd_key.dart is causing the error for the last digit 0 in HD path.
int index = int.parse(segment.substring(0, segment.length - 1));
I am sure this is a correct HD path as already using it with web3js implementation.
Please update null-safety.
Can you tell me when the update will be available?
Thank you.
Hi there,
I've been using this library on my flutter wallet but someone came across this issue a while ago. At that time I did copy your code to fix the issue and match the secret with the original hdkey js library. So now, I had to update some of my libraries (including this) and don't want to maintain the code there as well.
What do you think of receiving the secret (curve) as a optional parameter?
Thanks.
How would one sign a message given a KeyData
object?
This made me smile!
var pb = ED25519_HD_KEY.getBublickKey(data.key);
Hi
I'm having unresolvable version conflict with other libraries. Could you upgrade cryptography package.
KeyData data = await ED25519_HD_KEY.derivePath("m/44'/60'/0'/0/0", seedBytes);
The code above shows errors like:
E/flutter (18244): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: FormatException: Invalid number (at character 1)
E/flutter (18244):
E/flutter (18244): ^
E/flutter (18244):
E/flutter (18244): #0 int._throwFormatException (dart:core-patch/integers_patch.dart:129:7)
E/flutter (18244): #1 int.parse (dart:core-patch/integers_patch.dart:53:14)
any helps? thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.