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
#include "OutPoint.h"
8

9
#include "../BinaryCoding.h"
10

11
using namespace TW::Bitcoin;
12

13 1
void OutPoint::encode(std::vector<uint8_t>& data) const {
14 1
    std::copy(std::begin(hash), std::end(hash), std::back_inserter(data));
15 1
    encode32LE(index, data);
16
}

Read our documentation on viewing source code .

Loading