20 #ifndef RIPPLE_PROTOCOL_SIGN_H_INCLUDED
21 #define RIPPLE_PROTOCOL_SIGN_H_INCLUDED
23 #include <ripple/protocol/HashPrefix.h>
24 #include <ripple/protocol/PublicKey.h>
25 #include <ripple/protocol/STObject.h>
26 #include <ripple/protocol/SecretKey.h>
bool verify(PublicKey const &publicKey, Slice const &m, Slice const &sig, bool mustBeFullyCanonical) noexcept
Verify a signature on a message.
void finishMultiSigningData(AccountID const &signingID, Serializer &s)
Integers of any length that is a multiple of 32-bits.
HashPrefix
Prefix for hashing functions.
Serializer startMultiSigningData(STObject const &obj)
Break the multi-signing hash computation into 2 parts for optimization.
TypedField< STBlob > SF_VL
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
int addBitString(base_uint< Bits, Tag > const &v)
Buffer sign(PublicKey const &pk, SecretKey const &sk, Slice const &m)
Generate a signature for a message.
Serializer buildMultiSigningData(STObject const &obj, AccountID const &signingID)
Return a Serializer suitable for computing a multisigning TxnSignature.
base_uint< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.