Git Product home page Git Product logo

emoji-wallet's Introduction

Emoji wallet

Demo: https://stepansnigirev.github.io/emoji-wallet/

Mnemonic seed with emojis instead of words. Evening fun project, without any real applications, just for fun.

You can generate a private key and show it as a sequence of emojis. This sequence has a checksum (like in electrum, derived from hash, not from the wordlist) and you can actually use these private and public keys in any wallet.

Emoji seed can be used in electrum directly:

Example

Emoji seed

A web page generates a random seed and represents it as a sequence of emojis:

๐Ÿ˜ก๐ŸŽง๐Ÿ’†๐Ÿ•‹๐ŸŽŒ๐Ÿฃ๐Ÿšช๐Ÿ˜†๐Ÿ‘ฆ๐Ÿ“ป๐Ÿ•ฏ๐Ÿ’ท๐Ÿคโ˜๏ธ

Hex seed

All the emojis are unicode symbols, we can take a hash of this sequence and get the value. This hash should start with 01 to make sure there is no typo.

01665d55151280dc3a2b1545fd5ba0a2c735bdb3f78f0f93991a318a7ce1f7ac0c95ece0189f2b73987bd629d790eaf846af9a33e7d7261aff99fd304d839d04

Hash is calculated like in electrum:

HMAC(key="Seed version", data="๐Ÿ˜ก๐ŸŽง๐Ÿ’†๐Ÿ•‹๐ŸŽŒ๐Ÿฃ๐Ÿšช๐Ÿ˜†๐Ÿ‘ฆ๐Ÿ“ป๐Ÿ•ฏ๐Ÿ’ท๐Ÿคโ˜๏ธ")

We can derive HD private and public keys from the hash:

Master private key

xprv9s21ZrQH143K2yqyJAbtE6EYFhJdDGCYgeCPXPUnUh5VUvh5HbfCXGRy7CGmkNfD5QpVDamcYDXJg7AA68HF8jVHEYgSx4iJasNvg1tg7V3

Master public key

xpub661MyMwAqRbcFTvSQC8tbEBGoj97civQ3s7zKmtQ32cUMj2Dq8yT54kSxSiUq3NL8JpgdTywygrFERKrBvJGjc4AgZ6GK3KfxMZs3L2a6pU

Using it

With electrum everything is pretty simple: create a new wallet and enter emoji sequence as a seed. In other wallets import master private key instead.

Emoji transactions:

emoji-wallet's People

Contributors

stepansnigirev avatar carnhofdaki avatar

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.