A flutter package for converting xpubs and xprvs to different versions.

How to Use

To use the bitcoin_utils package in your project, add it as a dependency in your project's pubspec.yaml:



Converting xPub to zPub

import 'package:bitcoin_utils/xyzpub.dart';

// ....
  const xPub =
  const expectedZPub =

  final result = convertVersion(xPub, Version.zPub);
  expect(result, expectedZPub);

Please see /test/bitcoin_utils_test.dart for more usage examples

Credits and References

This package is based on the xyzpub Rust crate:

As more functionality and utilities are added, more references if any will be added here.

There will be a React Native version of this package as well.