Coder Social home page Coder Social logo

base43js's Introduction

Base 43

Try it live at electrum43.org

The Electrum bitcoin wallet uses a custom base 43 encoding on data before it is displayed as a QR code. See the "base_encode" function here:

https://github.com/spesmilo/electrum/blob/master/lib/bitcoin.py

If you used a QR reader to transfer data from electrum off of a machine, you need to be able to transform that into a hex string before bitcoin will know what to do with it. This project offers a webpage and a js library that will decode the Electrum base 43 format.

For example, if the QR code you read was a transaction that you signed on an offline airgapped machine, after using this project to decode it you could use blockchain.info to decode the hex data or broadcast the transaction

base43js's People

Contributors

jacoblyles avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

base43js's Issues

Looking for a way to encode

the tagline says this does but cannot see how

Need to be able to round-trip deterministically

without coding

please

Bitcoind can not decode the hex

Thanks for the great tool. Unfortunately bitcoind is not able to decode the psbt. Any ideas why?

Here is the base43:

3LZM4M*CNR4Q/:1JZ.SHBU7U3MDNOHH.*ONX*GNK36UHMBP5QVGRA*TMNG2W4U0/B-CQ+4K6BWEF+XR.9O70+30KV73EBY/W2NP6OW$MSV8VMS6YP4*LR*X6/SD-N/W9$L/7F9C93DXI5C/E2/XRYST6XF7*BZ2-5:G0LI-ZVU9WM+S*O8G8QW6HP$77ZKHD2N/D.F5B3QJ:430$C7TON0CTI19/X/PZFD7.KDVJ+H*A$7:FKBJ01838C59Q*U0XG733IJGA4XR3-NK9S8LRDBPSQ-3DK9E$G.JPTYXU0*M-+7:IE$C6H90BW9HF7$8M98LZ8D41ZMU0JUM-EYMQ6JO2K0$XYKRGW8G5:B$P0Q*EFI2.FN7WNF+EKJ7CX+-+5LF91JB6*-KS6D-$8C74YY8R*J*H*ZTQ9Q+07+YDZ8V-V/3YL$7DC*Y4LN$8H14O-2U*/4WLHAN1LXFO7L9B1TDZ40RJZDTA1DU.+4/ZE/KTVZTKYBZ9PNL+.IYV*EP9:N1R8/O-I.YB0WB/W28E6VB9ETWQ83CP7/NL1L*SUGJ9K9*9VUJICWHXWJ8+7:G:YE98DO6W4NT/*4LA3QUHV.3JB1PZWY7U+96-6*U7KP6O:+B1FPZ.MR3FPN3CSL2XEMU19M:WYI7V4U0RAEJEH00WPULGR:W+I2KCRZBPZD4WLTYSGZHS5C0U5RQA+71WTCZWHEGT/0PE-/*.535/8PR1*HAZP$-K

And even when I remove the electrum specific prefixes so that it is bitcoin core compatible hex to:

02000000000101632ded8f5645ce5e9f47fca580736d466797fbe129fb96e0a624e9d61f6d67340000000000fdffffff021027000000000000220020d2e67a9290d277980b6d3646b7963c8cc59d0a29c3b0e7e819f214430b801f70671a0f0000000000220020bc56af6ad6d3b368f80f9339f293031a4d233996573e521db087a77026e858c7feffffffff40420f00000000000000050001ff47304402205f484eb408936385af645d999e8c8ee9b3dc80340830b5c0c03a44f86a2ea73902201e2c701833c11e0782c440528e84ec65c48503f81966f0d655751a7c2f9752aa0101fffd0201524c53ff02575483041c83c99780000002aa5a6fb634d5fa50873c6aa6213e9f4da5bc4c2bb5599aa119d69cb1e0f2b69803a542d22d3c98da438fa64b453dcb473d2f2db62ac8bb9cd2495b68ccc118d4b5000000004c53ff0257548304073f436680000002728c3a06c4d3851b72e7b6302a6ab4453bbebd12104edc76f0ad951accf8c299038b10746f793b3927be862f6968815791ee0ebf361b8efafadfe60c8ec09d28b5000000004c53ff0257548304781cfdf3800000024b49e7e442ebf9f938e8a6d8368df14bd137fde4180e0ce923428c0beec8cbb303545a0fa2d9a5840cfa792285f714a285aad64accede01f3a853a1866e422dc9d0000000053aeca451a00

Bitcoin Core still can not decode it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.