Mavryk_dac_lib.Signature_reprval encoding : t Mavryk_base.TzPervasives.Data_encoding.tencoding dac_plugin returns the t Data_encoding.t given a dac_plugin.
val make :
Dac_plugin.raw_hash ->
Mavryk_crypto.Aggregate_signature.signature ->
Mavryk_crypto.Aggregate_signature.public_key_hash ->
tmake root_hash signature pkh creates a t. In addition, it ensures that the underlying Aggregate_signature.t always corresponds to Unknown variant.
Motivation for the Unknown variant: Unknown variant uses "asig" JSON prefix, whereas Mavryk_bls12_381 variant uses "BLsig" JSON prefix. To ensure consistent signature prefix, when data is exchanged accross the DAC network we use Unknown variant only.
val get_root_hash : t -> Dac_plugin.raw_hashget_root_hash signature returns a root hash of a given signature representation.
val get_signature : t -> Mavryk_crypto.Aggregate_signature.signatureget_signature signature returns an aggregated signature of a given signature representation.
val get_signer_pkh : t -> Mavryk_crypto.Aggregate_signature.public_key_hashget_signer_pkh signature returns a signer public key hash of a given signature representation.