Value

org.sigilaris.core.crypto.Hash.Value
object Value

Attributes

Source
Hash.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Value.type

Members list

Value members

Concrete methods

def apply[A](uint256: UInt256): Value[A]

Constructs a hash value from a org.sigilaris.core.datatype.UInt256.

Constructs a hash value from a org.sigilaris.core.datatype.UInt256.

Value parameters

uint256

32-byte hash value

Attributes

Returns

tagged hash value

Source
Hash.scala

Givens

Givens

Binary decoder for hash values, reading 32 bytes as datatype.UInt256.

Binary decoder for hash values, reading 32 bytes as datatype.UInt256.

Attributes

Source
Hash.scala

Binary encoder for hash values, writing 32 bytes from datatype.UInt256.

Binary encoder for hash values, writing 32 bytes from datatype.UInt256.

Attributes

Source
Hash.scala
given circeKeyEncoder[A]: KeyEncoder[Value[A]]

Circe key encoder for hash values, encoding as hex strings.

Circe key encoder for hash values, encoding as hex strings.

Attributes

Source
Hash.scala
given eqValue[A]: Eq[Value[A]]

cats.Eq instance for hash values, comparing by underlying datatype.UInt256.

cats.Eq instance for hash values, comparing by underlying datatype.UInt256.

Attributes

Source
Hash.scala

JSON key codec for hash values, enabling use as JSON object keys.

JSON key codec for hash values, enabling use as JSON object keys.

Attributes

Source
Hash.scala

JSON decoder for hash values, delegating to datatype.UInt256 decoding.

JSON decoder for hash values, delegating to datatype.UInt256 decoding.

Attributes

Source
Hash.scala

JSON encoder for hash values, delegating to datatype.UInt256 encoding.

JSON encoder for hash values, delegating to datatype.UInt256 encoding.

Attributes

Source
Hash.scala

Extensions

Extensions

extension [A](value: Value[A])
def hex: String

Returns the hash value as a lowercase hexadecimal string.

Returns the hash value as a lowercase hexadecimal string.

Attributes

Returns

64-character hex string representation of the hash

Source
Hash.scala

Unwraps the hash value to its underlying datatype.UInt256.

Unwraps the hash value to its underlying datatype.UInt256.

Attributes

Returns

the raw 32-byte hash as datatype.UInt256

Source
Hash.scala