Class VoteSetBitsMetadata
Inheritance
VoteSetBitsMetadata
Assembly: Libplanet.dll
public class VoteSetBitsMetadata : IEquatable<VoteSetBitsMetadata>
Constructors
|
Improve this Doc
View Source
Declaration
public VoteSetBitsMetadata(Dictionary encoded)
Parameters
Type |
Name |
Description |
Bencodex.Types.Dictionary |
encoded |
|
|
Improve this Doc
View Source
Declaration
public VoteSetBitsMetadata(long height, int round, BlockHash blockHash, DateTimeOffset timestamp, PublicKey validatorPublicKey, VoteFlag flag, IEnumerable<bool> voteBits)
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
The VoteFlag of the votes in the vote set.
Declaration
public VoteFlag Flag { get; }
Property Value
|
Improve this Doc
View Source
A height of the votes in the given vote set.
Declaration
public long Height { get; }
Property Value
|
Improve this Doc
View Source
A round of the votes in the given vote set.
Declaration
public int Round { get; }
Property Value
|
Improve this Doc
View Source
The time at which the set is created.
Declaration
public DateTimeOffset Timestamp { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public PublicKey ValidatorPublicKey { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public ImmutableArray<bool> VoteBits { get; }
Property Value
Methods
|
Improve this Doc
View Source
Declaration
public bool Equals(VoteSetBitsMetadata 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 VoteSetBits Sign(PrivateKey signer)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public byte[] ToByteArray()
Returns
Implements