Module Bitcoinml.Script_verify
module Sigver : sig ... end
Abstract module for verify functions
module SStack : sig ... end
Script execution stack
val verify : Sigver.t -> Script.t -> Script.t -> bool
verify sigver s1 s2
execute a scripts1
ands2
usingsigver
val is_spendable : Script.t -> bool
is_spendable s
returns true ifs
is spendable by a recognized address
val spendable_by : Script.t -> Address.prefix -> string option
spendable_by s prefix
returns the address (usingprefix
) which is able to spend the given script
val classify_output : Script.t -> string
classify_output s
returns the template name of the output scripts
if any