1
// Copyright © 2017-2020 Trust Wallet.
2
//
3
// This file is part of Trust. The full Trust copyright notice, including
4
// terms governing use, modification, and redistribution, is contained in the
5
// file LICENSE at the root of the source code distribution tree.
6

7
#pragma once
8

9
#include "TON/Address.h"
10
#include "TON/Cell.h"
11
#include "TON/Signer.h"
12
#include "PublicKey.h"
13
#include "PrivateKey.h"
14
#include "HexCoding.h"
15

16
#include <string>
17
#include <iostream>
18
#include <vector>
19
#include <cassert>
20

21
namespace TW::WalletConsole {
22

23
using namespace std;
24
using namespace TW;
25
using namespace TW::TON;
26

27
class TonCoin {
28
public:
29 0
    static bool tonInitMsg(const string& privkey, string& res) {
30 0
        PrivateKey privv = PrivateKey(parse_hex(privkey));
31 0
        Data extMsg = Signer::buildInitMessage(privv);
32 0
        res = hex(extMsg);
33
        return true;
34
    }
35
};
36

37
} // namespace TW::WalletConsole

Read our documentation on viewing source code .

Loading