package bitcoinml

  1. Overview
  2. Docs

Source file script_multisig.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
open Script;;

let op_int_base = Script.opcode_to_hex OP_RESERVED;;

module Input = struct 
  type t = int;;
  let check v = true;;
  let encode v = Script.empty;;
  let decode v = 0;;
end

module Output = struct 
  type t = {
    m: int;
    pubkeys: string list;
  };;

  let check v = true;;
  
  let encode v = Script.of_opcodes [ OP_CHECKMULTISIG];;

  let decode s = {
    m= 0;
    pubkeys= []
  };;

  let spendable_by s prefix = "";;
end


(*
module Script_multisig = Script_template.Make_template
  (Input)
  (Output)
;;
*)