Bitcoin-ABC / Bitcoin-ABC/bitcoin-abc

How i can get legacy address from CashAddr? c++

Open
#277 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.3k
Forks
788
PR merge metrics
No merged PRs in 30d

Description

Hello!

I use cashaddr::Decode("bitcoincash:qru3sqc0myvd9rg5umj9cl4sqx7r97x6r5kpzsq0vd", "bitcoincash");
for example, and take pair std:string with my prefix and std_vector:
> '\0' 0 0x00 unsigned char
> 3 0x03 unsigned char
> 28 0x1c unsigned char
> 17 0x11 unsigned char
> 16 0x10 unsigned char
> '\0' 0 0x00 unsigned char
> 24 0x18 unsigned char
> 15 0x0f unsigned char
> 27 0x1b unsigned char
> 4 0x04 unsigned char
> 12 0x0c unsigned char
> '\r' 13 0x0d unsigned char
> 5 0x05 unsigned char
> 3 0x03 unsigned char
> 8 0x08 unsigned char
> 20 0x14 unsigned char
> 28 0x1c unsigned char
> 27 0x1b unsigned char
> 18 0x12 unsigned char
> 5 0x05 unsigned char
> 24 0x18 unsigned char
> 31 0x1f unsigned char
> 21 0x15 unsigned char
> 16 0x10 unsigned char
> '\0' 0 0x00 unsigned char
> 6 0x06 unsigned char
> 30 0x1e unsigned char
> 3 0x03 unsigned char
> 5 0x05 unsigned char
> 30 0x1e unsigned char
> 6 0x06 unsigned char
> 26 0x1a unsigned char
> 3 0x03 unsigned char
> 20 0x14 unsigned char

How i can get/create legacy address form(1Pi629UHsqePTDLMVoyStR4SBH65vZ1P4f) from my cashAddr bitcoincash:qru3sqc0myvd9rg5umj9cl4sqx7r97x6r5kpzsq0vd , use this std::vector? I can't find this in manuals/examples in c++

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.