rippled
Loading...
Searching...
No Matches
attester.h
1#ifndef XRPL_TEST_JTX_ATTESTER_H_INCLUDED
2#define XRPL_TEST_JTX_ATTESTER_H_INCLUDED
3
4#include <xrpl/basics/Buffer.h>
5#include <xrpl/protocol/AccountID.h>
6
7#include <cstdint>
8#include <optional>
9
10namespace ripple {
11
12class PublicKey;
13class SecretKey;
14class STXChainBridge;
15class STAmount;
16
17namespace test {
18namespace jtx {
19
20Buffer
22 PublicKey const& pk,
23 SecretKey const& sk,
24 STXChainBridge const& bridge,
25 AccountID const& sendingAccount,
26 STAmount const& sendingAmount,
27 AccountID const& rewardAccount,
28 bool wasLockingChainSend,
29 std::uint64_t claimID,
30 std::optional<AccountID> const& dst);
31
32Buffer
34 PublicKey const& pk,
35 SecretKey const& sk,
36 STXChainBridge const& bridge,
37 AccountID const& sendingAccount,
38 STAmount const& sendingAmount,
39 STAmount const& rewardAmount,
40 AccountID const& rewardAccount,
41 bool wasLockingChainSend,
42 std::uint64_t createCount,
43 AccountID const& dst);
44} // namespace jtx
45} // namespace test
46} // namespace ripple
47
48#endif
Json::Value bridge(Account const &lockingChainDoor, Issue const &lockingChainIssue, Account const &issuingChainDoor, Issue const &issuingChainIssue)
Buffer sign_claim_attestation(PublicKey const &pk, SecretKey const &sk, STXChainBridge const &bridge, AccountID const &sendingAccount, STAmount const &sendingAmount, AccountID const &rewardAccount, bool wasLockingChainSend, std::uint64_t claimID, std::optional< AccountID > const &dst)
Definition attester.cpp:13
Buffer sign_create_account_attestation(PublicKey const &pk, SecretKey const &sk, STXChainBridge const &bridge, AccountID const &sendingAccount, STAmount const &sendingAmount, STAmount const &rewardAmount, AccountID const &rewardAccount, bool wasLockingChainSend, std::uint64_t createCount, AccountID const &dst)
Definition attester.cpp:36
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
base_uint< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.
Definition AccountID.h:29