MerlinTranscript class
A transcript object for the Merlin cryptographic protocol.
The MerlinTranscript
class provides a convenient way to create and manage a transcript for the Merlin cryptographic protocol.
It is initialized with an application label and uses a Strobe instance for cryptographic operations.
Parameters:
appLabel
: A string representing the application label to differentiate different transcripts.
Usage:
String appLabel = "MyApp";
MerlinTranscript transcript = MerlinTranscript(appLabel);
// Create a transcript for the "MyApp" application.
This class simplifies the process of managing transcripts for cryptographic protocols and is commonly used for secure communication and cryptographic operations.
Constructors
- MerlinTranscript(String label)
-
The Strobe instance used for cryptographic operations.
factory
- MerlinTranscript.fromStrobe(Strobe strobe)
-
const
Properties
Methods
-
additionalData(
List< int> label, List<int> message) → void - Appends additional data to the transcript for the Merlin cryptographic protocol.
-
clone(
) → MerlinTranscript -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBigint(
List< int> label, int outLen) → BigInt -
Converts pseudo-random bytes into a
BigInt
with scalar reduction. -
toBytes(
List< int> label, int outLen) → List<int> - Generates pseudo-random bytes based on the current transcript state.
-
toBytesWithReduceScalar(
List< int> label, int outLen) → List<int> - Generates pseudo-random bytes and reduces them using scalar reduction.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- merlinVersion → const String