rippled
Loading...
Searching...
No Matches
include/xrpl/protocol/PayChan.h
1#pragma once
2
3#include <xrpl/basics/base_uint.h>
4#include <xrpl/protocol/HashPrefix.h>
5#include <xrpl/protocol/Serializer.h>
6#include <xrpl/protocol/XRPAmount.h>
7
8namespace xrpl {
9
10inline void
12{
14 msg.addBitString(key);
15 msg.add64(amt.drops());
16}
17
18} // namespace xrpl
int addBitString(base_uint< Bits, Tag > const &v)
Definition Serializer.h:105
constexpr value_type drops() const
Returns the number of drops.
Definition XRPAmount.h:157
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
void serializePayChanAuthorization(Serializer &msg, uint256 const &key, XRPAmount const &amt)
@ paymentChannelClaim
Payment Channel Claim.