Git Product home page Git Product logo

Comments (10)

10gic avatar 10gic commented on September 26, 2024

Telegram has shut down its TON cryptocurrency project. 😭

Currently, vanitygen plusplus can support a new blockchain very easily, if the chain:

  1. use elliptic curve secp256k1, and
  2. its address encoded with Base58Check.

It seems that TON does not meet the conditions, https://ton.live/accounts?section=all
To support it, may be there is extra work to be done.

from vanitygen-plusplus.

boo50 avatar boo50 commented on September 26, 2024

Yes, but there are Free TON project which is maintained by https://github.com/tonlabs/ and it's live, even mainnet already active. And ton.live is actually their website.

from vanitygen-plusplus.

10gic avatar 10gic commented on September 26, 2024

Is there technical article about how to generating TON address? Just like https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses

from vanitygen-plusplus.

boo50 avatar boo50 commented on September 26, 2024

Yes sure on the top of howto
https://ton.org/HOWTO.txt

from vanitygen-plusplus.

10gic avatar 10gic commented on September 26, 2024

Yes sure on the top of howto
https://ton.org/HOWTO.txt

It just talks about how to convert address from raw form (eg. -1:fcb91a3a3816d0f7b8c2c76108b8a9bc5a6b7a55bd79f8ab101c52db29232260) to user-friendly forms.
There is no guide about how to generate an address inside masterchain (workchain_id=-1).

from vanitygen-plusplus.

boo50 avatar boo50 commented on September 26, 2024

Yes you right.
Maybe this pdf starting from page 53 have necessary information?
https://test.ton.org/tblkch.pdf

Or maybe source code for tonos-cli can help ?
https://github.com/tonlabs/tonos-cli/blob/master/src/genaddr.rs

from vanitygen-plusplus.

10gic avatar 10gic commented on September 26, 2024

@boo50 I'm not familiar with TON.

In source code of tonos-cli https://github.com/tonlabs/tonos-cli/blob/master/src/genaddr.rs, the key part of generating address is:

    let addr = ton.contracts.get_deploy_address(
        abi.clone().into(),
        &contract,
        initial_data.clone().map(|d| d.into()),
        &keys.public,
        wc,
    ).map_err(|e| format!("failed to generate address: {}", e.to_string()))?;

Is the address always related with contract?

from vanitygen-plusplus.

boo50 avatar boo50 commented on September 26, 2024

Yes, every address in ton is actually a smart-contract.
This one for example https://github.com/tonlabs/ton-labs-contracts/tree/master/solidity/safemultisig

from vanitygen-plusplus.

10gic avatar 10gic commented on September 26, 2024

@boo50 Does it mean that user must provide a concrete contract before generating address?
Given a private/public key-pair and a contract, is the address determined?

from vanitygen-plusplus.

boo50 avatar boo50 commented on September 26, 2024

yes, generate address example you can see in this script
https://github.com/tonlabs/net.ton.dev/blob/master/scripts/msig_genaddr.sh
in this example address is generating for contract provided before - safemultisig
and keys to access this address(contract) are generated like this
./tonos-cli genphrase
./tonos-cli getkeypair msig.keys.json "phrase from prev step"

from vanitygen-plusplus.

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.