NewDkgDetails class

Details of DKG requested by a participant. This is signed by the participant and sent to the other participants.

Mixed-in types

Constructors

NewDkgDetails({required String name, required String description, required int threshold, required Expiry expiry})
The name must be unique and the description should explain what the key is to be used for. The name must be within 40 characters and the description must be within 1,000 characters.
NewDkgDetails.allowNegativeExpiry({required String name, required String description, required int threshold, required Expiry expiry})
Should only be used in tests
NewDkgDetails.fromBytes(Uint8List bytes)
Convenience constructor to construct from serialised bytes.
NewDkgDetails.fromReader(BytesReader reader)

Properties

description String
A more in-depth description of the DKG up-to 1000 characters
final
expiry Expiry
The requested expiry of the DKG
final
hashCode int
The hash code for this object.
no setterinherited
name String
A unique name for the DKG between 3-40 characters
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sigHash Uint8List
no setterinherited
size int
Obtains the cached size of the object
no setterinherited
threshold int
The threshold for the desired key
final
uncachedSigHash Uint8List
no setteroverride

Methods

hashWithCommitments(DkgCommitmentSet commitments) Uint8List
Hash of DKG details and commiments that participants verify is equal for every other participant for round 2.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBytes() Uint8List
Obtains a cached Uint8List with data serialized for this object
inherited
toHex() String
inherited
toString() String
A string representation of this object.
inherited
write(Writer writer) → void
Override to write data into writer

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

maxDescLength int
getter/setter pair
maxNameLength int
getter/setter pair
minNameLength int
getter/setter pair