Mina_base.Signed_command
include Signed_command_intf.Full
with type With_valid_signature.Stable.Latest.t =
Mina_wire_types.Mina_base.Signed_command.With_valid_signature.V2.t
module Payload = Signed_command_payload
module Poly : sig ... end
module Stable : sig ... end
include Signed_command_intf.S
with type t = Stable.V2.t
and type t_v1 = Stable.V1.t
with type With_valid_signature.Stable.Latest.t =
Mina_wire_types.Mina_base.Signed_command.With_valid_signature.V2.t
type t = Stable.V2.t
val to_yojson : t -> Yojson.Safe.t
val of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
val hash_fold_t :
Ppx_hash_lib.Std.Hash.state ->
t ->
Ppx_hash_lib.Std.Hash.state
val hash : t -> Ppx_hash_lib.Std.Hash.hash_value
type t_v1 = Stable.V1.t
include Core_kernel.Comparable.S with type t := t
val comparator : ( t, comparator_witness ) Base__Comparator.comparator
module Replace_polymorphic_compare : sig ... end
module Map : sig ... end
module Set : sig ... end
include Core_kernel.Hashable.S with type t := t
val hash_fold_t :
Ppx_hash_lib.Std.Hash.state ->
t ->
Ppx_hash_lib.Std.Hash.state
val hash : t -> Ppx_hash_lib.Std.Hash.hash_value
val hashable : t Core_kernel__.Hashtbl.Hashable.t
module Table : sig ... end
module Hash_set : sig ... end
module Hash_queue : sig ... end
val payload : t -> Signed_command_payload.t
val fee : t -> Currency.Fee.t
val nonce : t -> Mina_numbers.Account_nonce.t
val signer : t -> Mina_base_import.Public_key.t
val fee_token : t -> Token_id.t
val fee_payer_pk : t -> Mina_base_import.Public_key.Compressed.t
val fee_payer : t -> Account_id.t
val fee_excess : t -> Fee_excess.t
val token : t -> Token_id.t
val source_pk : t -> Mina_base_import.Public_key.Compressed.t
val source : t -> Account_id.t
val receiver_pk : t -> Mina_base_import.Public_key.Compressed.t
val receiver : t -> Account_id.t
val public_keys : t -> Mina_base_import.Public_key.Compressed.t list
val amount : t -> Currency.Amount.t option
val memo : t -> Signed_command_memo.t
val valid_until : t -> Mina_numbers.Global_slot.t
val minimum_fee : Currency.Fee.t
val has_insufficient_fee : t -> bool
val tag : t -> Transaction_union_tag.t
val tag_string : t -> string
val to_input_legacy :
Signed_command_payload.t ->
( Snark_params.Tick.Field.t, bool ) Random_oracle_input.Legacy.t
include Signed_command_intf.Gen_intf with type t := t
module Gen : sig ... end
module With_valid_signature : sig ... end
val sign_payload :
?signature_kind:Mina_signature_kind.t ->
Signature_lib.Private_key.t ->
Signed_command_payload.t ->
Signature.t
val sign :
?signature_kind:Mina_signature_kind.t ->
Mina_base_import.Signature_keypair.t ->
Signed_command_payload.t ->
With_valid_signature.t
val check_signature : ?signature_kind:Mina_signature_kind.t -> t -> bool
val create_with_signature_checked :
?signature_kind:Mina_signature_kind.t ->
Signature.t ->
Mina_base_import.Public_key.Compressed.t ->
Signed_command_payload.t ->
With_valid_signature.t option
val check_valid_keys : t -> bool
module Base58_check_v1 : Codable.Base58_check_intf with type t := t_v1
module For_tests : sig ... end
val check : t -> With_valid_signature.t option
checks signature and keys
val check_only_for_signature : t -> With_valid_signature.t option
val to_valid_unsafe :
t ->
[ `If_this_is_used_it_should_have_a_comment_justifying_it of
With_valid_signature.t ]
val forget_check : With_valid_signature.t -> t
Forget the signature check.
val accounts_accessed : t -> Transaction_status.t -> Account_id.t list
account ids accessed, given a transaction status
val accounts_referenced : t -> Account_id.t list
all account ids mentioned in a command
val filter_by_participant :
t list ->
Mina_base_import.Public_key.Compressed.t ->
t list
val of_base58_check_exn_v1 : string -> t_v1 Core_kernel.Or_error.t
include Codable.Base64_intf with type t := t
val to_base64 : t -> string
val of_base64 : string -> t Core_kernel.Or_error.t