viaduct
0.2.0-5-g5831d91.dirty
runtime2
/
edu.cornell.cs.apl.viaduct.runtime.commitment
/
Commitment
Commitment
class
Commitment
<
T
>
(
hash
:
ByteArray
)
Content copied to clipboard
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
)
Content copied to clipboard
Functions
open
Link copied to clipboard
inline
fun
<
T
>
open
(
secret
:
Committed
<
T
>
)
:
T
Content copied to clipboard
Properties
hash
Link copied to clipboard
val
hash
:
ByteArray
Content copied to clipboard