Keypop Calypso Crypto Legacy SAM C++ API 0.6.0
Reference Calypso Crypto Legacy SAM API for C++
SignatureVerificationData.hpp
Go to the documentation of this file.
1/**************************************************************************************************
2 * Copyright (c) 2024 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 https://opensource.org/licenses/MIT. *
6 * *
7 * SPDX-License-Identifier: MIT *
8 **************************************************************************************************/
9
10#pragma once
11
12#include <cstdint>
13#include <vector>
14
15namespace keypop {
16namespace calypso {
17namespace crypto {
18namespace legacysam {
19namespace transaction {
20
29template <typename T>
31public:
43 virtual T& setData(
44 const std::vector<uint8_t>& data,
45 const std::vector<uint8_t>& signature,
46 const uint8_t kif,
47 const uint8_t kvc)
48 = 0;
49
60 virtual T& setKeyDiversifier(const std::vector<uint8_t>& diversifier) = 0;
61
70 virtual bool isSignatureValid() const = 0;
71};
72
73} /* namespace transaction */
74} /* namespace legacysam */
75} /* namespace crypto */
76} /* namespace calypso */
77} /* namespace keypop */
virtual T & setData(const std::vector< uint8_t > &data, const std::vector< uint8_t > &signature, const uint8_t kif, const uint8_t kvc)=0
virtual T & setKeyDiversifier(const std::vector< uint8_t > &diversifier)=0