@btc-vision/btc-runtime
Version:
Bitcoin L1 Smart Contract Runtime for OP_NET. Build decentralized applications on Bitcoin using AssemblyScript and WebAssembly. Fully audited.
102 lines (94 loc) • 2.35 kB
text/typescript
export class VerifyResult {
public ok: bool;
public constructor(ok: bool) {
this.ok = ok;
}
}
export class SegwitDecoded {
public hrp: string;
public version: i32;
public program: Uint8Array;
public constructor(hrp: string, version: i32, program: Uint8Array) {
this.hrp = hrp;
this.version = version;
this.program = program;
}
}
export class CsvRecognize {
public ok: bool;
public csvBlocks: i64;
public pubkey: Uint8Array | null;
public constructor(ok: bool, csvBlocks: i64, pubkey: Uint8Array | null) {
this.ok = ok;
this.csvBlocks = csvBlocks;
this.pubkey = pubkey;
}
}
export class MultisigRecognize {
public ok: bool;
public m: i32;
public n: i32;
public pubkeys: Array<Uint8Array> | null;
public constructor(ok: bool, m: i32, n: i32, pubkeys: Array<Uint8Array> | null) {
this.ok = ok;
this.m = m;
this.n = n;
this.pubkeys = pubkeys;
}
}
export class CsvP2wshResult {
public address: string;
public witnessScript: Uint8Array;
public constructor(address: string, ws: Uint8Array) {
this.address = address;
this.witnessScript = ws;
}
}
export class MultisigP2wshResult {
public address: string;
public witnessScript: Uint8Array;
public constructor(address: string, ws: Uint8Array) {
this.address = address;
this.witnessScript = ws;
}
}
export class CsvPairCrossCheck {
public ok: bool;
public address: string;
public witnessScript: Uint8Array;
public csvBlocks: i64;
public pubkey: Uint8Array | null;
public constructor(
ok: bool,
address: string,
witnessScript: Uint8Array,
csvBlocks: i64,
pubkey: Uint8Array | null,
) {
this.ok = ok;
this.address = address;
this.witnessScript = witnessScript;
this.csvBlocks = csvBlocks;
this.pubkey = pubkey;
}
}
export class MultisigPairCrossCheck {
public ok: bool;
public m: i32;
public n: i32;
public address: string;
public constructor(ok: bool, m: i32, n: i32, address: string) {
this.ok = ok;
this.m = m;
this.n = n;
this.address = address;
}
}