Dac_node_client.V0V0 is a module that provides a client specification for interacting with experimental Mavryk_lib_dac.Rpc_services.Api.V0 API. Note that even though V0 api is binding, it is already deprecated. Use it at your own risk!
val get_preimage :
cctxt ->
page_hash:Mavryk_dac_lib.Dac_plugin.raw_hash ->
bytes Mavryk_base.TzPervasives.tzresult Lwt.tget_preimage cctxt ~hash requests the preimage of hash, consisting of a single page, from cctxt. When the request succeeds, the raw page will be returned as a sequence of bytes.
val put_dac_member_signature :
cctxt ->
signature:Mavryk_dac_lib.Signature_repr.t ->
unit Mavryk_base.TzPervasives.tzresult Lwt.tput_dac_member_signature cctxt ~signature:Signature_repr.t stores the signature generated from signing hex_root_hash by dac_member_pkh.
val get_certificate :
cctxt ->
root_page_hash:Mavryk_dac_lib.Dac_plugin.raw_hash ->
Mavryk_dac_lib.Certificate_repr.t Mavryk_base.TzPervasives.tzresult Lwt.tget_certificate cctxt ~root_page_hash fetches the DAC certificate for the provided root_page_hash.
val get_serialized_certificate :
cctxt ->
root_page_hash:Mavryk_dac_lib.Dac_plugin.raw_hash ->
Mavryk_base.TzPervasives.String.t option Mavryk_base.TzPervasives.tzresult
Lwt.tget_serialized_certificate cctxt ~root_page_hash fetches and serialize the DAC certificate for the provided root_page_hash.
val monitor_certificate :
cctxt ->
root_hash:Mavryk_dac_lib.Dac_plugin.raw_hash ->
(Mavryk_dac_lib.Certificate_repr.t Lwt_stream.t * Mavryk_rpc.Context.stopper)
Mavryk_base.TzPervasives.tzresult
Lwt.tmonitor_certificate cctxt ~root_hash returns a stream and a stopper for monitoring certificate updates for root_hash.
module Coordinator : sig ... endmodule Observer : sig ... end