You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear Ian, i am new on Git Hub and i dont know how to contact you, so i will write here my question :)
I try to understand your example (see below) but i did not understand well about the third component....can you please complete the example also about the third component
??
that will help me to understand in full yr example.
Thank you so much in advance,
Marco from Phuket :)
Example encoding parameters across multiple words
Consider
M = 35 = 100011
O = 10 = 1010
Left pad both to multiple of 5 bits
M = 0000100011
O = 0000001010
Split into groups of 5 bits
M = 00001 00011
O = 00000 01010
Convert this into mnemonic words:
The first word is not the final word so it:
starts with 1
then has the first five bits of M
then has the first five bits of O
1 00001 00000 = 10000100000 = 1056 = "lottery"
The second word is the final word so it:
starts with 0
then has the second five bits of M
then has the second five bits of O
0 00011 01010 = 00001101010 = 106 = "ask"
So the parameters M = 35 and O = 10 are encoded as "lottery ask"
Third Component is The Shamir Share
The third component is the data for the shamir share and is a binary blob which must be encoded to mnemonic words.
The binary shamir share is encoded to mnemonic words by:
left pad the binary share to multiple of 11 bits
convert each group of 11 bits to the corresponding word in the wordlist
The mnemonic words are decoded to the binary shamir share by:
convert each word to the 11 bit binary representation and concatenate together
truncate from the left to the required multiple for the specific shamir implementation (in the case of the prototype it's 4 bits)
The text was updated successfully, but these errors were encountered:
Dear Ian, i am new on Git Hub and i dont know how to contact you, so i will write here my question :)
I try to understand your example (see below) but i did not understand well about the third component....can you please complete the example also about the third component
??
that will help me to understand in full yr example.
Thank you so much in advance,
Marco from Phuket :)
Example encoding parameters across multiple words
Consider
M = 35 = 100011
O = 10 = 1010
Left pad both to multiple of 5 bits
M = 0000100011
O = 0000001010
Split into groups of 5 bits
M = 00001 00011
O = 00000 01010
Convert this into mnemonic words:
The first word is not the final word so it:
1 00001 00000 = 10000100000 = 1056 = "lottery"
The second word is the final word so it:
0 00011 01010 = 00001101010 = 106 = "ask"
So the parameters M = 35 and O = 10 are encoded as "lottery ask"
Third Component is The Shamir Share
The third component is the data for the shamir share and is a binary blob which must be encoded to mnemonic words.
The binary shamir share is encoded to mnemonic words by:
left pad the binary share to multiple of 11 bits
convert each group of 11 bits to the corresponding word in the wordlist
The mnemonic words are decoded to the binary shamir share by:
convert each word to the 11 bit binary representation and concatenate together
truncate from the left to the required multiple for the specific shamir implementation (in the case of the prototype it's 4 bits)
The text was updated successfully, but these errors were encountered: