1#include <xrpl/protocol/AccountID.h>
2#include <xrpl/protocol/HashPrefix.h>
3#include <xrpl/protocol/KeyType.h>
4#include <xrpl/protocol/PublicKey.h>
5#include <xrpl/protocol/SField.h>
6#include <xrpl/protocol/STExchange.h>
7#include <xrpl/protocol/STObject.h>
8#include <xrpl/protocol/SecretKey.h>
9#include <xrpl/protocol/Serializer.h>
10#include <xrpl/protocol/Sign.h>
20 SF_VL const& sigField)
33 SF_VL const& sigField)
35 auto const sig =
get(st, sigField);
void addWithoutSigningFields(Serializer &s) const
std::size_t size() const noexcept
void const * data() const noexcept
Slice slice() const noexcept
An immutable linear range of bytes.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
void finishMultiSigningData(AccountID const &signingID, Serializer &s)
Serializer startMultiSigningData(STObject const &obj)
Break the multi-signing hash computation into 2 parts for optimization.
bool verify(PublicKey const &publicKey, Slice const &m, Slice const &sig, bool mustBeFullyCanonical=true) noexcept
Verify a signature on a message.
Serializer buildMultiSigningData(STObject const &obj, AccountID const &signingID)
Return a Serializer suitable for computing a multisigning TxnSignature.
bool set(T &target, std::string const &name, Section const §ion)
Set a value from a configuration Section If the named value is not found or doesn't parse as a T,...
Buffer sign(PublicKey const &pk, SecretKey const &sk, Slice const &message)
Generate a signature for a message.
T get(Section const §ion, std::string const &name, T const &defaultValue=T{})
Retrieve a key/value pair from a section.
HashPrefix
Prefix for hashing functions.
@ txMultiSign
inner transaction to multi-sign
A field with a type known at compile time.