CatapultServer  v0.5.0.1 (Elephant)
catapult::model::SignatureNotification Struct Reference

Notifies the presence of a signature. More...

Inheritance diagram for catapult::model::SignatureNotification:
Collaboration diagram for catapult::model::SignatureNotification:

Public Types

enum  ReplayProtectionMode { ReplayProtectionMode::Enabled, ReplayProtectionMode::Disabled }
 Replay protection modes. More...
 

Public Member Functions

 SignatureNotification (const Key &signer, const Signature &signature, const RawBuffer &data, ReplayProtectionMode dataReplayProtectionMode=ReplayProtectionMode::Disabled)
 
- Public Member Functions inherited from catapult::model::Notification
 Notification (NotificationType type, size_t size)
 Creates a new notification with type and size. More...
 

Public Attributes

const KeySigner
 Signer. More...
 
const catapult::SignatureSignature
 Signature. More...
 
RawBuffer Data
 Signed data. More...
 
ReplayProtectionMode DataReplayProtectionMode
 Replay protection mode applied to data. More...
 
- Public Attributes inherited from catapult::model::Notification
NotificationType Type
 Notification type. More...
 
size_t Size
 Notification size. More...
 

Static Public Attributes

static constexpr auto Notification_Type = Core_Signature_Notification
 Matching notification type. More...
 

Detailed Description

Notifies the presence of a signature.

Member Enumeration Documentation

◆ ReplayProtectionMode

Replay protection modes.

Enumerator
Enabled 
Disabled 

Constructor & Destructor Documentation

◆ SignatureNotification()

catapult::model::SignatureNotification::SignatureNotification ( const Key signer,
const Signature signature,
const RawBuffer &  data,
ReplayProtectionMode  dataReplayProtectionMode = ReplayProtectionMode::Disabled 
)
inline

Creates a signature notification around signer, signature and data with optional replay protection mode (dataReplayProtectionMode) applied to data.

Member Data Documentation

◆ Data

RawBuffer catapult::model::SignatureNotification::Data

Signed data.

◆ DataReplayProtectionMode

ReplayProtectionMode catapult::model::SignatureNotification::DataReplayProtectionMode

Replay protection mode applied to data.

◆ Notification_Type

constexpr auto catapult::model::SignatureNotification::Notification_Type = Core_Signature_Notification
staticconstexpr

Matching notification type.

◆ Signature

const catapult::Signature& catapult::model::SignatureNotification::Signature

Signature.

◆ Signer

const Key& catapult::model::SignatureNotification::Signer

Signer.


The documentation for this struct was generated from the following file: