Class Maj23Metadata
Inheritance
Maj23Metadata
Assembly: Libplanet.dll
public class Maj23Metadata : IEquatable<Maj23Metadata>
Constructors
|
Improve this Doc
View Source
Declaration
public Maj23Metadata(Dictionary encoded)
Parameters
Type |
Name |
Description |
Bencodex.Types.Dictionary |
encoded |
|
|
Improve this Doc
View Source
Declaration
public Maj23Metadata(long height, int round, BlockHash blockHash, DateTimeOffset timestamp, PublicKey validatorPublicKey, VoteFlag flag)
Parameters
Properties
|
Improve this Doc
View Source
Declaration
public BlockHash BlockHash { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public ImmutableArray<byte> ByteArray { get; }
Property Value
|
Improve this Doc
View Source
Declaration
[JsonIgnore]
public Dictionary Encoded { get; }
Property Value
Type |
Description |
Bencodex.Types.Dictionary |
|
|
Improve this Doc
View Source
Declaration
public VoteFlag Flag { get; }
Property Value
|
Improve this Doc
View Source
A height of given maj23 values.
Declaration
public long Height { get; }
Property Value
|
Improve this Doc
View Source
A round of given maj23 values.
Declaration
public int Round { get; }
Property Value
|
Improve this Doc
View Source
The time at which the claim took place.
Declaration
public DateTimeOffset Timestamp { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public PublicKey ValidatorPublicKey { get; }
Property Value
Methods
|
Improve this Doc
View Source
Declaration
public bool Equals(Maj23Metadata other)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
|
Improve this Doc
View Source
Declaration
public override int GetHashCode()
Returns
Overrides
|
Improve this Doc
View Source
Declaration
public Maj23 Sign(PrivateKey signer)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public byte[] ToByteArray()
Returns
Implements