Vote

org.sigilaris.node.jvm.runtime.consensus.hotstuff.Vote
See theVote companion class
object Vote

Companion for Vote, providing signing and identity operations.

Attributes

Companion
class
Source
Artifacts.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Vote.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def recomputeId(vote: Vote): VoteId

Recomputes the vote ID from the vote's fields, for verification purposes.

Recomputes the vote ID from the vote's fields, for verification purposes.

Attributes

Source
Artifacts.scala
def sign(unsigned: UnsignedVote, keyPair: KeyPair): Either[HotStuffValidationFailure, Vote]

Signs an unsigned vote using the given key pair.

Signs an unsigned vote using the given key pair.

Value parameters

keyPair

the signer's key pair

unsigned

the vote to sign

Attributes

Returns

the signed vote or a validation failure

Source
Artifacts.scala
def signBytes(unsigned: UnsignedVote): ByteVector

Returns the canonical bytes to be signed for the given unsigned vote.

Returns the canonical bytes to be signed for the given unsigned vote.

Attributes

Source
Artifacts.scala

Givens

Givens