Nonce class
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
fromBytes(List<int> bytes)
→ Nonce
-
takes 12 bytes of the input, which is expected to be a list of bytes, and makes a nonce from it
expects the input bytes to be completely random!
-
fromString(String str)
→ Nonce
-
Creates a nonce from a string
-
fromThreeInts(int a, int b, int c)
→ Nonce
-
Creates a nonce from three random integers.
-
fromUUID(String uuidStr)
→ Nonce
-
Hashes the UUID with sha256 and uses parts of the hash to create a nonce