CatapultServer  v0.5.0.1 (Elephant)
Cosignature.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "catapult/types.h"
23 
24 namespace catapult { namespace model {
25 
26 #pragma pack(push, 1)
27 
29  struct Cosignature {
32 
35  };
36 
38  struct DetachedCosignature : public Cosignature {
39  public:
41  DetachedCosignature(const Key& signer, const catapult::Signature& signature, const Hash256& parentHash)
42  : Cosignature{ signer, signature }
43  , ParentHash(parentHash)
44  {}
45 
46  public:
49  };
50 
51 #pragma pack(pop)
52 }}
catapult::model::Cosignature
A cosignature.
Definition: Cosignature.h:29
catapult::model::DetachedCosignature::ParentHash
Hash256 ParentHash
Hash of the corresponding parent.
Definition: Cosignature.h:48
catapult::model::Cosignature::Signer
Key Signer
Cosigner public key.
Definition: Cosignature.h:31
types.h
catapult::model::DetachedCosignature::DetachedCosignature
DetachedCosignature(const Key &signer, const catapult::Signature &signature, const Hash256 &parentHash)
Creates a detached cosignature around signer, signature and parentHash.
Definition: Cosignature.h:41
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::utils::ByteArray< Key_Size, Key_tag >
catapult::model::DetachedCosignature
A detached cosignature.
Definition: Cosignature.h:38
catapult::model::Cosignature::Signature
catapult::Signature Signature
Cosigner signature.
Definition: Cosignature.h:34