Skip to content

Manage multiple keys derived from a single mnemonic in TON blockchain for offline cold storage

Notifications You must be signed in to change notification settings

ton-defi-org/ton-offline-multi-mnemonic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TON Offline Multi Mnemonic Code Converter

Use single mnemonic to create multiple pks.

For security reasons the mnemonic should be stored in cold wallet. This tool enables the user to store only one mnemonic and create multiple pks from this mnemonic, which facilitates the management of the cold storage.

Using the stored mnemonic the user can create the same pks if needed.

This tool uses tonweb-mnemonic to convert the mnemonic to multiple seeds by using hash function (SHA-512) to sign mnemonic key with an incremented number (starting with 0) as a password for each pk.

How to use

  1. Download and copy this library to a secured computer (preferably without internet connection)
  2. Open ton-mnemonic-pk.html
  3. Enter 24 word mnemonic or use the 'Generate New Mnemonic' button
  4. Enter derivation path. Different derivation paths will generate different private keys
  5. Enter number of private keys to generate and pk start index. Can be useful if you want to generate more pks
  6. Covert the mnemonic to pks and download zip file
  7. The 2-checksum words can be stored and used later to validate the mnemonic correctness

Examples:

  1. Generate 10 pks starting from index 0 with a given mnemonic:
  • mnemonic: "remind trim update similar device behind exhibit attitude video gap broccoli cable fly pioneer ostrich hill tuna bamboo fortune admit tornado equip fitness verify"
  • derivation path: example/0
  • number of private keys: 10
  • start index: 0
  1. Generate 5 more pks using the same mnemonic and the same derivation path:
  • mnemonic: "remind trim update similar device behind exhibit attitude video gap broccoli cable fly pioneer ostrich hill tuna bamboo fortune admit tornado equip fitness verify"
  • derivation path: example/0
  • number of private keys: 5
  • start index: 10
  1. Use the same mnemonic and generate 10 new different pks starting from index 0, use different derivation path:
  • mnemonic: "remind trim update similar device behind exhibit attitude video gap broccoli cable fly pioneer ostrich hill tuna bamboo fortune admit tornado equip fitness verify"
  • derivation path: example/1
  • number of private keys: 10
  • start index: 0

img.png

About

Manage multiple keys derived from a single mnemonic in TON blockchain for offline cold storage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published