viaduct
0.3.0
runtime
/
io.github.aplcornell.viaduct.runtime.commitment
/
Commitment
Commitment
@
Serializable
class
Commitment
<
T
>
(
val
hash
:
ByteArray
)
A commitment to a value of type
T
. Can be opened to receive the committed value.
Constructors
Functions
Properties
Constructors
Commitment
Link copied to clipboard
fun
Commitment
(
hash
:
ByteArray
)
Functions
open
Link copied to clipboard
inline
fun
<
T
>
open
(
secret
:
Committed
<
T
>
)
:
T
Properties
hash
Link copied to clipboard
val
hash
:
ByteArray