CatapultServer  v0.5.0.1 (Elephant)
catapult::state::SecretLockInfo Struct Reference

A secret lock info. More...

Inheritance diagram for catapult::state::SecretLockInfo:
Collaboration diagram for catapult::state::SecretLockInfo:

Public Member Functions

 SecretLockInfo ()
 Creates a default secret lock info. More...
 
 SecretLockInfo (const Key &account, catapult::MosaicId mosaicId, catapult::Amount amount, catapult::Height height, model::LockHashAlgorithm hashAlgorithm, const Hash256 &secret, const catapult::Address &recipient)
 Creates a secret lock info around account, mosaicId, amount, height, hashAlgorithm, secret and recipient. More...
 
- Public Member Functions inherited from catapult::state::LockInfo
constexpr bool isActive (catapult::Height height) const
 Returns true if lock info is active at height. More...
 

Public Attributes

model::LockHashAlgorithm HashAlgorithm
 Hash algorithm. More...
 
Hash256 Secret
 Secret. More...
 
catapult::Address Recipient
 Recipient of the locked mosaic. More...
 
Hash256 CompositeHash
 Composite hash. More...
 
- Public Attributes inherited from catapult::state::LockInfo
Key Account
 Account. More...
 
catapult::MosaicId MosaicId
 Mosaic id. More...
 
catapult::Amount Amount
 Amount. More...
 
catapult::Height Height
 Height at which the lock expires. More...
 
LockStatus Status
 Flag indicating whether or not the lock was already used. More...
 

Additional Inherited Members

- Protected Member Functions inherited from catapult::state::LockInfo
 LockInfo ()
 Creates a default lock info. More...
 
 LockInfo (const Key &account, catapult::MosaicId mosaicId, catapult::Amount amount, catapult::Height height)
 Creates a lock info around account, mosaicId, amount and height. More...
 

Detailed Description

A secret lock info.

Constructor & Destructor Documentation

◆ SecretLockInfo() [1/2]

catapult::state::SecretLockInfo::SecretLockInfo ( )
inline

Creates a default secret lock info.

◆ SecretLockInfo() [2/2]

catapult::state::SecretLockInfo::SecretLockInfo ( const Key account,
catapult::MosaicId  mosaicId,
catapult::Amount  amount,
catapult::Height  height,
model::LockHashAlgorithm  hashAlgorithm,
const Hash256 secret,
const catapult::Address recipient 
)
inline

Creates a secret lock info around account, mosaicId, amount, height, hashAlgorithm, secret and recipient.

Member Data Documentation

◆ CompositeHash

Hash256 catapult::state::SecretLockInfo::CompositeHash

Composite hash.

◆ HashAlgorithm

model::LockHashAlgorithm catapult::state::SecretLockInfo::HashAlgorithm

Hash algorithm.

◆ Recipient

catapult::Address catapult::state::SecretLockInfo::Recipient

Recipient of the locked mosaic.

◆ Secret

Hash256 catapult::state::SecretLockInfo::Secret

Secret.


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