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