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) 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:
44 virtual T& setData(
45 const std::vector<uint8_t>& data,
46 const std::vector<uint8_t>& signature,
47 const uint8_t kif,
48 const uint8_t kvc)
49 = 0;
50
63 virtual T& setKeyDiversifier(const std::vector<uint8_t>& diversifier) = 0;
64
73 virtual bool isSignatureValid() const = 0;
74};
75
76} /* namespace transaction */
77} /* namespace legacysam */
78} /* namespace crypto */
79} /* namespace calypso */
80} /* 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