Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/protocol.h
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | |||||
class Hello { | class Hello { | ||||
Delegation delegation; | Delegation delegation; | ||||
SchnorrSig sig; | SchnorrSig sig; | ||||
public: | public: | ||||
Hello(Delegation delegationIn, SchnorrSig sigIn) | Hello(Delegation delegationIn, SchnorrSig sigIn) | ||||
: delegation(std::move(delegationIn)), sig(sigIn) {} | : delegation(std::move(delegationIn)), sig(sigIn) {} | ||||
std::array<uint8_t, 64> GetSig() { return sig; } | SchnorrSig GetSig() { return sig; } | ||||
// serialization support | // serialization support | ||||
SERIALIZE_METHODS(Hello, obj) { READWRITE(obj.delegation, obj.sig); } | SERIALIZE_METHODS(Hello, obj) { READWRITE(obj.delegation, obj.sig); } | ||||
}; | }; | ||||
} // namespace avalanche | } // namespace avalanche | ||||
#endif // BITCOIN_AVALANCHE_PROTOCOL_H | #endif // BITCOIN_AVALANCHE_PROTOCOL_H |