Skip to content

Instantly share code, notes, and snippets.

@ylv-io
Last active May 7, 2018 20:22
Show Gist options
  • Save ylv-io/d00ec55806b0e7e6f9ead90cf83f656c to your computer and use it in GitHub Desktop.
Save ylv-io/d00ec55806b0e7e6f9ead90cf83f656c to your computer and use it in GitHub Desktop.
Bitcoin Cash conversion between legacy and new format using C#
// credit goes to library https://github.com/cashaddress/SharpCashAddr
var newAddress = "1BpEi6DfDAUFd7GtittLSdBeYJvcoaVggu".OldAddrToCashAddr();
var oldAddress = "bitcoincash:qr95sy3j9xwd2ap32xkykttr4cvcu7as4y0qverfuy".CashAddrToOldAddr();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment