WOTS class

Constructors

WOTS.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

baseW(Uint8List msg, List<int> destination) List<int>
Converts message to base w (convenience overload)
baseW_(Uint8List msg, List<int> destination, int offset, int length) List<int>
Converts message to base w
chainLengths(Uint8List msg, List<int> destination) List<int>
Computes chain lengths
expandSeed(Uint8List outSeeds, Uint8List inSeed) → void
Expands seed into WOTS private key
genChain(Uint8List out, int outOffset, Uint8List input, int inOffset, int start, int steps, Uint8List pubSeed, Uint8List addr) → void
Generates chains for WOTS
generateAddress(Uint8List? tag, Uint8List secret, Map<String, Uint8List> componentsGenerator(Uint8List wotsSeed)) Uint8List
Generates a WOTS address using the componentsGenerator. Note: use your own componentsGenerator that fills in deterministic bytes if you want to generate a specific address
generateRandomAddress(Uint8List? tag, Uint8List secret, [RandomGenerator randomGenerator = randomBytes]) Uint8List
Generates a random WOTS address using the randomGenerator Note: use your own randomGenerator that fills in deterministic bytes if you want to generate a specific address
isValid(Uint8List secret, Uint8List address, [RandomGenerator random = randomBytes]) bool
Validates a WOTS address using a Random generator
isValidWithComponents(Uint8List secret, Uint8List pk, Uint8List pubSeed, Uint8List rnd2, RandomGenerator randomGenerator) bool
Validates WOTS components
splitAddress(Uint8List address, Uint8List pk, Uint8List pubSeed, Uint8List rnd2, Uint8List? tag) → void
Splits a WOTS address into its components
wotsChecksum(List<int> msgBaseW, int sumOffset) List<int>
Computes WOTS checksum
wotsPkFromSig(Uint8List signature, Uint8List msg, Uint8List pubSeed, Uint8List addr) Uint8List
Verifies a WOTS signature
wotsPkgen(Uint8List pk, Uint8List seed, Uint8List pubSeed, int offset, Uint8List addr) → void
Generates WOTS public key
wotsSign(Uint8List sig, Uint8List msg, Uint8List seed, Uint8List pubSeed, int offset, Uint8List addr) → void
Signs a message using WOTS

Constants

PARAMSN → const int
TXSIGLEN → const int
WOTSLEN → const int
WOTSLEN1 → const int
WOTSLEN2 → const int
WOTSLOGW → const int
WOTSSIGBYTES → const int
WOTSW → const int