VRFProof class
The VRFProof
class represents a Verifiable Random Function (VRF) proof, consisting of two components 'c' and 's'.
VRF is a cryptographic construction used to generate a verifiable proof of a random value.
Members:
_c
: AList<int>
containing the 'c' component of the VRF proof._s
: AList<int>
containing the 's' component of the VRF proof.
This class provides methods and properties to access and manipulate the components of the VRF proof.
Constructors
-
VRFProof.fromBytes(List<
int> bytes) -
Creates a
VRFProof
instance from a byte representation. The input bytes are expected to be properly formatted for a VRF proof.factory
Properties
-
c
→ List<
int> -
Gets a copy of the 'c' component as a
List<int>
.no setter - cBigint → BigInt
-
Converts the 'c' component into a
BigInt
.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
s
→ List<
int> -
Gets a copy of the 's' component as a
List<int>
.no setter - sBigint → BigInt
-
Converts the 's' component into a
BigInt
.no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBytes(
) → List< int> -
Converts the
VRFProof
instance into aList<int>
by concatenating the 'c' and 's' components. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited