Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Is bitcoin address supported? #152

Open
fzn0x opened this issue Jan 4, 2022 · 1 comment
Open

Is bitcoin address supported? #152

fzn0x opened this issue Jan 4, 2022 · 1 comment

Comments

@fzn0x
Copy link

fzn0x commented Jan 4, 2022

Bitcoin address would take up 26-35, see here for the information from Bitcoin wiki

A Bitcoin invoice address, or simply invoice, is an identifier of 26-35 alphanumeric characters, beginning with the number 1, 3 or bc1 that represents a possible destination for a bitcoin payment. Invoices can be generated at no cost by any user of Bitcoin. It is also possible to get a Bitcoin invoice address using an account at an exchange or online wallet service.

There are currently three invoice address formats in use:

P2PKH which begin with the number 1, eg: 1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2.
P2SH type starting with the number 3, eg: 3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy.
Bech32 type starting with bc1, eg: bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq.


Ethereum address would take up 42 characters long for the prefixed address, see here for the information from Ethereum documentation glossary

An Ethereum address represents an account. For EOA, the address is derived as the last 20 bytes of the public key controlling the account, e.g., cd2a3d9f938e13cd947ec05abc7fe734df8dd826. This is a hexadecimal format (base 16 notation), which is often indicated explicitly by appending 0x to the address. Web3.js and console functions accept addresses with or without this prefix but for transparency we encourage their use. Since each byte of the address is represented by 2 hex characters, a prefixed address is 42 characters long. Several apps and APIs are also meant to implement the new checksum-enabled address scheme introduced in the Mist Ethereum wallet as of version 0.5.0.

@bxcodec
Copy link
Owner

bxcodec commented Aug 19, 2022

Can you help to raise a PR for this? We're working on V4 here #169, if you can help, we will include this as part of new v4 feature. Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants