Giter Site home page Giter Site logo

invalid seed check about tonutils-go HOT 5 CLOSED

wgx731 avatar wgx731 commented on August 27, 2024
invalid seed check

from tonutils-go.

Comments (5)

xssnick avatar xssnick commented on August 27, 2024 1

Hi, we are checking seed type, we doing additional hash to detect is seed with password (1) or not (0), this is how it is implemented in official ton node, see https://github.com/ton-blockchain/ton/blob/4cfe1d1a96acf956e28e2bbc696a143489e23631/tonlib/tonlib/keys/Mnemonic.cpp#L77

from tonutils-go.

xssnick avatar xssnick commented on August 27, 2024 1

Please use wallet.NewSeed() and wallet.FromSeed(), it is simpler and better :)

from tonutils-go.

wgx731 avatar wgx731 commented on August 27, 2024

Thanks a lot for the quick answer, a related question about the wallet:
README states This library will deploy and initialize wallet contract if it is not initialized yet.

But I am getting SendWaitTransaction err: failed to send message: lite server error, code 0: cannot apply external message to current state : External message was not accepted error, following basic usage example, as the wallet is inactive, any code reference to init the wallet?

Thank you very much.

from tonutils-go.

xssnick avatar xssnick commented on August 27, 2024

Probably this is because balance is 0 or not enough

from tonutils-go.

wgx731 avatar wgx731 commented on August 27, 2024

Probably this is because balance is 0 or not enough

The issue is I have sent to the bounceable addresses of the wallet which I want to init previously. Thanks again for the help.
Closing the issue now.

from tonutils-go.

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.