Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't derive xpub #16

Open
cedvdb opened this issue Oct 14, 2021 · 0 comments
Open

Can't derive xpub #16

cedvdb opened this issue Oct 14, 2021 · 0 comments

Comments

@cedvdb
Copy link

cedvdb commented Oct 14, 2021

When deriving an xpub I have the error Missing private key for hardened child key. Aren't you supposed to be able to derive with only the public key, for watch only wallets for example ?

import 'package:bip32/bip32.dart' as bip32;

void main(List<String> arguments) {
  final base58 = 'xpub661MyMwAqRbcFxtSX21UXfaDwmdN5zmJ1C8t1cjviNkkW6gXCd7AcfciXRuhPerjhnpziEXb2fsWkAVsNEJhgM5BPgnenuDDXVPbJSadrUG';
  final node = bip32.BIP32.fromBase58(base58);
  final derived = node.derivePath("m/44'/0'/0'/0/0");
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant