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