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 "../Data.h"
10

11
namespace TW::Ontology {
12

13 1
class SigData {
14
  private:
15
    uint8_t m;
16

17
    std::vector<Data> pubKeys;
18

19
    std::vector<Data> sigs;
20

21
  public:
22 1
    explicit SigData(const Data& pubKey, const Data& sig, uint8_t m) : m(m) {
23 1
        sigs.push_back(sig);
24 1
        pubKeys.push_back(pubKey);
25
    }
26

27
    std::vector<uint8_t> serialize();
28
};
29

30
} // namespace TW::Ontology

Read our documentation on viewing source code .

Loading