Giter Club home page Giter Club logo

dart-ed25519-hd-key's People

Contributors

alepop avatar allanclempe avatar jsbmand avatar sushantchandla avatar zelmkhan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dart-ed25519-hd-key's Issues

cannot generate private key from derive path

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.

plz, null-safety

Please update null-safety.
Can you tell me when the update will be available?
Thank you.

Receive curve as parameter?

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.

spelling

This made me smile!

var pb = ED25519_HD_KEY.getBublickKey(data.key);

derivePath invalid

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.