Coder Social home page Coder Social logo

Comments (4)

psylopunk avatar psylopunk commented on August 23, 2024 1

Hello, I'm trying to understand, why seed phrases is not acceptable by other wallets?
I have tried to put 24 words to "TON Wallet" plugin for Chrome and to "Tonhub" from generated key, also from exported wallet.

# key[1] contains 24 words phrases.
key = client.create_new_key(seed.split(' '))
# _________
# word_list from TL object of exported wallet also do not work.
wallet.export()['word_list']

Library version is 0.14
Thank you!

TonlibClient.create_new_key returns a tuple: a key instance and a mnemonic seed.

# seed is a mnemonic seed
key, mnemonic = client.create_new_key(seed.split(' '))

# Get a wallet from the created key
wallet = client.init_wallet(key)

# Get a word list
word_list = wallet.export().word_list

I'm not sure that it will be possible to import a wallet from the library to other wallets like Tonhub and Tonkeeper now, but I would also like to be able to do it. There are other state.code, which at least are not supported yet libtonlibjson.so , which is used to communicate with lite servers.

Fixed in v0.15. Now only word_list is used as a seed, which is supported by all wallets like TonHub.
Unfortunately, we had to change the interfaces for creating and importing a wallet again, check them out.
However, I still advise using TonlibClient.create_new_key with all parameters specified to achieve maximum security. But such wallets cannot be transferred to wallet applications

from pytonlib.

lorrod avatar lorrod commented on August 23, 2024

Also could you help me to understand how to import wallet?

I saw a function for import import wallet:
'''
client.import_wallet(word_list: str, mnemonic_seed: str, password: str = None)
'''

I can take word_list from wallet.export()
Where can I get mnemonic_seed?

from pytonlib.

psylopunk avatar psylopunk commented on August 23, 2024

Hello, I'm trying to understand, why seed phrases is not acceptable by other wallets?

I have tried to put 24 words to "TON Wallet" plugin for Chrome and to "Tonhub" from generated key, also from exported wallet.

# key[1] contains 24 words phrases.
key = client.create_new_key(seed.split(' '))
# _________
# word_list from TL object of exported wallet also do not work.
wallet.export()['word_list']

Library version is 0.14

Thank you!

TonlibClient.create_new_key returns a tuple: a key instance and a mnemonic seed.

# seed is a mnemonic seed
key, mnemonic = client.create_new_key(seed.split(' '))

# Get a wallet from the created key
wallet = client.init_wallet(key)

# Get a word list
word_list = wallet.export().word_list

I'm not sure that it will be possible to import a wallet from the library to other wallets like Tonhub and Tonkeeper now, but I would also like to be able to do it. There are other state.code, which at least are not supported yet libtonlibjson.so , which is used to communicate with lite servers.

from pytonlib.

psylopunk avatar psylopunk commented on August 23, 2024

Also could you help me to understand how to import wallet?

I saw a function for import import wallet:

client.import_wallet(word_list: str, mnemonic_seed: str, password: str = None)

I can take word_list from wallet.export() Where can I get mnemonic_seed?

You can import the key into the keystore to use this wallet on another device or with another keystore. This can be done using TonlibClient.import_wallet(word_list, mnemonic_seed). We get the wordlist via Wallet.export(), and mnemonic_seed is specified when generating the key in TonlibClient.create_new_key(seed)

But if we are in the same keystore, then we only need to find out Wallet.path in order to use it the next time the program starts with TonlibClient.find_wallet

from pytonlib.

Related Issues (20)

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.