ProofMessage class
Represents a message used in the creation of a cryptographic proof.
A ProofMessage
contains information about the type of proof message,
the actual message, and an optional blinding factor used in cryptographic processes.
Constructors
- ProofMessage.new(int type, Uint8List message, Uint8List blindingFactor)
-
Constructs a
ProofMessage
with the specifiedtype
,message
, andblindingFactor
.
Properties
- blindingFactor → Uint8List
-
Byte data of the blinding factor used to obscure the message.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → Uint8List
-
Byte data of the actual message.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → int
-
Type of the proof message (one of the constants defined above).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the
ProofMessage
instance into a JSON-compatible map for serialization. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- PROOF_MESSAGE_TYPE_HIDDEN_EXTERNAL_BLINDING → const int
- Proof message type: Hidden with external blinding. The message is obscured using an external blinding factor.
- PROOF_MESSAGE_TYPE_HIDDEN_PROOF_SPECIFIC_BLINDING → const int
- Proof message type: Hidden with proof-specific blinding. The message is obscured using internal cryptographic blinding.
- PROOF_MESSAGE_TYPE_REVEALED → const int
- Proof message type: Revealed (the message is disclosed).