mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Validation signature bugfix.
This commit is contained in:
@@ -10,6 +10,7 @@ SOElement SerializedValidation::sValidationFormat[16] = {
|
||||
};
|
||||
|
||||
const uint32 SerializedValidation::sFullFlag = 0x00010000;
|
||||
const uint32 SerializedValidation::sValidationMagic = 0x4c575200; // "LGR"
|
||||
|
||||
SerializedValidation::SerializedValidation(SerializerIterator& sit, bool checkSignature)
|
||||
: STObject(sValidationFormat, sit), mSignature(sit, "Signature")
|
||||
@@ -31,6 +32,7 @@ SerializedValidation::SerializedValidation(const uint256& ledgerHash, CKey::poin
|
||||
uint256 SerializedValidation::getSigningHash() const
|
||||
{
|
||||
Serializer s;
|
||||
s.add32(sValidationMagic);
|
||||
add(s);
|
||||
return s.getSHA512Half();
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ public:
|
||||
|
||||
static SOElement sValidationFormat[16];
|
||||
static const uint32 sFullFlag;
|
||||
static const uint32 sValidationMagic;
|
||||
|
||||
// These throw if the object is not valid
|
||||
SerializedValidation(SerializerIterator& sit, bool checkSignature = true);
|
||||
|
||||
Reference in New Issue
Block a user