Keypop Calypso Crypto Legacy SAM C++ API - 1.0.0
Component of the Keypop C++ API
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
17namespace keypop {
18namespace calypso {
19namespace crypto {
20namespace legacysam {
21namespace transaction {
22
31template <typename T>
33public:
45 virtual T& setData(
46 const std::vector<uint8_t>& data,
47 const std::vector<uint8_t>& signature,
48 uint8_t kif,
49 uint8_t kvc)
50 = 0;
51
64 virtual T& setKeyDiversifier(const std::vector<uint8_t>& diversifier) = 0;
65};
66
67} /* namespace transaction */
68} /* namespace legacysam */
69} /* namespace crypto */
70} /* namespace calypso */
71} /* namespace keypop */
Contains the input/output data of the FreeTransactionManager#prepareVerifySignature(SignatureVerifica...
virtual T & setData(const std::vector< uint8_t > &data, const std::vector< uint8_t > &signature, uint8_t kif, uint8_t kvc)=0
Sets the signed data, the associated signature and the KIF/KVC of the key to be used for the signatur...
virtual T & setKeyDiversifier(const std::vector< uint8_t > &diversifier)=0
Sets a specific key diversifier to use before verifying the signature (optional).