Keypop Calypso Crypto Legacy SAM C++ API 0.6.0
Reference Calypso Crypto Legacy SAM API for C++
SignatureComputationData.hpp
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (c) 2025 Calypso Networks Association https://calypsonet.org/ *
3 * *
4 * This program and the accompanying materials are made available under the *
5 * terms of the MIT License which is available at *
6 * https://opensource.org/licenses/MIT. *
7 * *
8 * SPDX-License-Identifier: MIT *
9 ******************************************************************************/
10
11#pragma once
12
13#include <cstdint>
14#include <vector>
15
16namespace keypop {
17namespace calypso {
18namespace crypto {
19namespace legacysam {
20namespace transaction {
21
30template <typename T>
32public:
43 virtual T& setData(
44 const std::vector<uint8_t>& data, const uint8_t kif, const uint8_t kvc)
45 = 0;
46
59 virtual T& setSignatureSize(const int size) = 0;
60
72 virtual T& setKeyDiversifier(const std::vector<uint8_t>& diversifier) = 0;
73
81 const std::vector<uint8_t>& getSignature() const = 0;
82};
83
84} /* namespace transaction */
85} /* namespace legacysam */
86} /* namespace crypto */
87} /* namespace calypso */
88} /* namespace keypop */
virtual T & setData(const std::vector< uint8_t > &data, const uint8_t kif, const uint8_t kvc)=0
virtual T & setKeyDiversifier(const std::vector< uint8_t > &diversifier)=0