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 <string>
10

11
/// refers to https://github.com/aeternity/aepp-sdk-go/blob/07aa8a77e5/aeternity/identifiers.go
12
namespace TW::Aeternity::Identifiers {
13

14
/// default network id
15 1
static const std::string networkId = "ae_mainnet";
16

17
/// Base58 prefixes
18 1
static const std::string prefixAccountPubkey = "ak_";
19 1
static const std::string prefixSignature = "sg_";
20

21
/// Base 64 encoded transactions
22 1
static const std::string prefixTransaction = "tx_";
23

24
/// version used in the rlp message
25
static const uint8_t rlpMessageVersion = 1;
26

27
/// Object tags
28
/// \see https://github.com/aeternity/protocol/blob/master/serializations.md#binary-serialization
29
static const uint64_t objectTagSignedTransaction = 11;
30
static const uint64_t objectTagSpendTransaction = 12;
31

32
/// Tag constant for ids
33
/// \see https://github.com/aeternity/protocol/blob/master/serializations.md#the-id-type
34
static const uint8_t iDTagAccount = 1;
35

36
} // namespace TW::Aeternity::Identifiers

Read our documentation on viewing source code .

Loading