The Advantages of Formosa Crypto Wallet Management

Cryptocurrency wallet management counts on a cryptographic healing secret– a secret word or expression with which a user safeguards and recuperates their wallet. The BIP39 healing essential execution supports keyword choices that are far much easier to remember than the random alphanumeric string secrets of the past. For this factor, BIP39 is credited for exceptionally and favorably affecting the crypto user experience. However remembering a BIP39 healing secret is still no simple task.

Get In Formosa, an effective open-source job that produces healing secrets meant to be much easier to keep in mind. Formosa works with BIP39, enhances security, and includes a choice of styles for users to pick from. Users can move from style to style without any danger to their existing secrets.

To much better familiarize you with Formosa, we will cover the fundamentals of crypto wallet management with a concrete healing expression example. We will then dive deeper into a Python tutorial that demonstrates how to take advantage of Formosa in security tasks

Note: Do not utilize our example Formosa secrets or seeds in any crypto wallet as their publication here jeopardizes their secrecy.

Crypto Wallet Management

Crypto wallet management describes a wallet’s development, healing, and basic function of getting and exchanging coins. These top-level usage cases depend upon the associated seed that is developed when the wallet is instantiated.

Seed Structuring, Security, and Healing: The BIP39 Viewpoint

For a crypto wallet to work as meant, a distinct and personal seed is needed. The seed must be concealed and never ever shared. Such a seed is the basis for producing private-public essential sets, which are utilized for finalizing and confirming deals.

Each private-public essential set produces a single address to be utilized in inter-wallet deals. An address is the “owner” of currency, and is utilized to anonymously represent ownership of currency quantities on the blockchain For the sake of security and privacy, it is an excellent practice to never ever recycle an address from your crypto wallet.

Any crypto wallet can create or recuperate private-public essential sets and associated addresses from any seed. BIP39-compatible wallets offer a system with which to enter our healing word list and instantiate our associated secrets and addresses on that platform or gadget.

The appeal of this cryptocurrency wallet system is that, must a user lose access to their crypto wallet, they can just go into the provided seed or its healing expression into any BIP39-implemented wallet, where they would gain back access to their currency, connecting that wallet to that seed’s every deal.

So how do these seeds work from a technical viewpoint? A seed’s strength grows tremendously with the variety of bits it includes– usually either 128 bits or 256 bits.

BIP39 pulls from a list of 2,048 words. Since 2,048 = 2 ¹¹, making a one-to-one mapping of all 2,048 BIP39 words to all possible 11-bit series is easy enough to do: We utilize binary notation (thus the otherwise approximate option of 2,048) to appoint to each word the bit series that represents its position in the BIP39 word list.

Because each word takes 11 bits, we would utilize 12 healing words in order to create a 128-bit seed. Astute readers will see that a 12-word series yields 132 bits– 4 more bits than is needed to reach the 128-bit security requirement. Those 4 are checksum bits, utilized to look for information mistakes; they offer a layer of security for when these words are typed either by a user from memory or through transcription.

Reiterated mathematically: 12 words * 11 bits per word = 132 overall bits, 128 of which create the seed. 132-128 = 4 staying checksum bits. In case of a transcription mistake, a wallet geared up with a BIP39 input user interface and utilizing 128-bit seeds has a: 1/2 ⁴ or 6.25% opportunity of stopping working to spot the mistake.

In contrast, to create a 256-bit seed, BIP39 pulls 24 words, yielding 8 such checksum bits. Reiterated mathematically: 24 words * 11 bits per word = 264 overall bits, 256 of which create the seed. 264-256 = 8 staying checksum bits. And in case of a transcription mistake, a wallet geared up with a BIP39 input user interface and 256-bit seeds has a 1/2 ⁸ or ≅ 0.4% opportunity of stopping working to spot the mistake.

An extra appropriate residential or commercial property of BIP39 is that the very first 4 characters in each word of its English word list are special. This permits effective auto-complete user interfaces, along with a BIP39 password format in which the very first 4 characters of all words are concatenated. If a seed word is a simple 3 letters (the minimum word length), a hyphen is added as its 4th character in order to make the existence of three-letter words unnoticeable. In such a case, we would have a constant ratio of 11/4 = 2.75 little bits of randomness per digit, if checksum bits are left out, or ( 132-4)/( 4 * 12) = 128/48 = 8/3 = 2.67 bits per digit if checksum bits are consisted of.

Healing Sentences Are Much Better: The Formosa Viewpoint

Formosa supplies whatever that BIP39 does– and more. Like BIP39, a Formosa wallet might be utilized for all kinds of cryptocurrencies, such as Bitcoin In regards to cryptographic strength, Formosa uses the exact same checksum bit ratio and password strength densities as BIP39 when it comes to either the existence or lack of checksum bits.

However Formosa beats BIP39 by codifying its secret random details into sentences that are much easier for us to keep in mind than the requirement and diverse BIP39 word list.

Another helpful Formosa function is its style ability. Providing an excellent and growing collection of styles (e.g., Fairy Tale, Tourist), Formosa empowers us to source expressions that are related to the style of our picking, making such expressions cohesive and unforgettable. Expressions might be transformed in between Formosa styles without jeopardizing security.

We can do round-trip conversions in between Formosa and BIP39 seeds– all without a loss of security. A typical factor we may want to transform from BIP39 to Formosa is to access to more unforgettable healing expression choices while likewise maintaining our existing crypto account addresses. From a human viewpoint, there might be no usage case for conversion from Formosa to BIP39, however we do require our user interface to carry out such conversions each time we enter our Formosa healing expressions and gain access to our existing BIP39 crypto account addresses.

A Comprehensive Healing Expression Generation Example

The following detailed example shows how to create a BIP39 healing expression and its matching Formosa healing expression, provided a particular seed. As a pointer, you must prevent utilizing any of our example secrets or seeds in a crypto wallet or other applications because they are released and, for that reason, are not personal.

Let’s select a 16-byte hexadecimal seed (i.e., a seed including 16 * 8 = 128 bits), 0XE41FEEEEE282BC5411CE97DF78B3660E, as our beginning point. This is comparable to this binary 128-bit representation, plus its 4 checksum bits: 11100100000111111110111011101110111000101000001010111100010101000001000111001110100101111101111101111000101100110110011000001110 0100

BIP39 divides this 132-bit outcome into 11-bit random words. Formosa, on the other hand, divides the binary 132-bit string into 4 33-bit strings (shown by the 4 rows in the following table). Formosa then divides each 33-bit variety into a set pattern of 5- or six-bit portions utilized to form expressions:

BIP39

Formosa (Middle Ages Dream Style)

3 x 11-bit Chunks:
Random Word

5-bit Piece:
Verb

6-bit Piece:
Topic

6-bit Piece:
Things

5-bit Piece:
Adjective

6-bit Piece:
Wild Card

5-bit Piece:
Location

11100100000: tomato
11111111011: youth
10111011101: roofing
11100: reveal 100000: king 111111: red wine 11011: sweet 101110: queen 11101:.
throne_room.
11000101000: shallow
00101011110: fabric
00101010000: claw.
11000: swing 101000: troll 001010: club 11110: wood 001010: cyclops 10000: mountain
01000111001: elbow.
11010010111: spray
11011111011: term.
01000: produce. 111001: summoner 110100: spellbook 10111: secret 110111: spirit 11011: temple
11000101100: constable.
11011001100: sundown.
00011100100: broken.
11000: swing 101100: pirate 110110: tankard 01100: carbonated 000111: buccaneer 00100: brewery

The association that exists in between the words that consist of a Formosa healing essential expression supplies a story-centric option to a BIP39 expression, producing more unforgettable outputs:

BIP39 Final Output

Formosa Final Output

tomato youth roofing

king reveal sweet red wine queen throne_room

shallow fabric claw

troll swing wood club cyclops mountain

elbow spray term

summoner produce secret spellbook spirit temple

constable sundown broken

pirate swing carbonated tankard buccaneer brewery

Think about the following diagram that reveals the dependences that cause a Formosa healing secret:

The dependencies that lead to a Formosa recovery key.
  1. The very first bit piece defines a verb: It is translated as a number that represents an entry in a list in the Formosa style’s JSON file.
  2. The 2nd piece defines a subject: It is translated as a number that represents an entry in a list supplied by the formerly specified verb
  3. The 3rd piece defines an item: It is translated as a number that represents an entry in a list supplied by the formerly specified subject
  4. The 4th piece defines an adjective: It is translated as a number that represents an entry in a list supplied by the formerly specified item
  5. The 5th piece defines a wild card: It is translated as a number that represents an entry in a list supplied by the formerly specified subject
  6. The 6th piece defines a location: It is translated as a number that represents an entry in a list supplied by the formerly specified wild card

Utilizing the example of our very first 33-bit string, this very first piece indexes the verb “reveal,” which is related to 64 possible topics. The 2nd piece indexes the subject “king,” which is related to 64 possible things and 64 possible wild cards. The 3rd piece indexes the word “red wine,” which is related to 32 possible adjectives, and selects the word “sweet,” which is not related to an extra list. The 5th piece indexes the word “queen,” which is related to 32 possible locations, and the 6th piece indexes the two-word expression “throne_room.”

In this case we wind up with the series: king reveal sweet red wine queen throne_room To help in retention of the mnemonic, a user can conjure up grammar and auxiliary parts of speech: “[The] king reveal[s the] sweet red wine [to the] queen [in the] throne_room” or “[The] king reveal[s the] sweet red wine [at the] queen[’s] throne_room” is an example expression for our series. Our outcome is a remarkable, visual scene.

Python and Formosa: Crypto Wallet Code

We have actually covered the fundamentals of cryptographic wallet security and usage, and shared an example of transforming a selection of random bits into a healing expression. Now let’s utilize Formosa in an easy Python job in which we will produce a seed and after that transform it in between BIP39 and Formosa.

To start, clone the job, defining Formosa as the job folder name. Next, run the following script in Formosa‘s moms and dad directory site to import our library and produce a basic BIP39 mnemonic:

 # Import library into python job through:.
from formosa.src.mnemonic.mnemonic import Mnemonic.

style="BIP39".
mnemo = Mnemonic( style).

Because the mnemo.generate technique is created to draw random bits, output will differ if you run the script more than as soon as. Now we’ll create a BIP39 word list having a strength (amount of bits) that is a numerous of 32 and is in between 32 and 256:

 words = mnemo.generate( strength= 128).
print( words).
# Output: tomato youth roofing shallow fabric claw elbow spray term constable sundown broken.

Provided the produced word list, we can determine the initial input little bits of our BIP39-formatted expression, formatted as a hexadecimal string:

 entropy = mnemo.to _ entropy( words).
print( entropy.hex(). upper()).
# Output: E41FEEEEE282BC5411CE97DF78B3660E.

It is likewise possible to transform one mnemonic style to another provided the word list and both style names. Let’s transform our BIP39 expression to a Formosa expression in the middle ages dream style:

 new_words = mnemo.convert _ style( words, "medieval_fantasy", "BIP39").
# We instantiate a brand-new Mnemonic item with the style "medieval_fantasy", and after that utilize it to format output.
print( Mnemonic(" medieval_fantasy"). format_mnemonic( new_words)).

# Output:.
# password = kiunswwiquthogswwoclcymosucrsespsptepiswfitabubr.
# formosa_sentences = king reveal sweet red wine queen throne_room.
# troll swing wood club cyclops mountain.
# summoner produce secret spellbook spirit temple.
# pirate swing carbonated tankard buccaneer brewery.

Utilizing the exact same technique, we can likewise transform back to the initial BIP39 style:

 original_words = mnemo.convert _ style( new_words, "BIP39", "medieval_fantasy").

To put it simply, utilizing Formosa, anybody with a BIP39 passphrase can create a themed semantic passphrase. Our concise code blocks demonstrate how simple it is to utilize Formosa.

Formosa: An Upgrade to Your Cryptocurrency Wallet

BIP39 wallets are plentiful in the crypto area, and incorporate perfectly with Formosa healing expressions to enhance the cryptocurrency user experience. The lots of cryptocurrency users who currently have a healing word list and matching addresses might keep and improve their existing addresses by embracing Formosa. Formosa is a considerable advance in perfectly enhancing the human maker user interface for cryptocurrency users.


The editorial group of the Toptal Engineering Blog site extends its appreciation to Edson Cilos Vargas Júnior for examining the code samples and other technical material provided in this short article.

Like this post? Please share to your friends:
Leave a Reply

;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: