import { C } from "https://deno.land/x/lucid@0.10.6/src/mod.ts";
const { encode_json_str_to_native_script } = C;
Receives a script JSON string and returns a NativeScript. Cardano Wallet and Node styles are supported.
- wallet: https://github.com/input-output-hk/cardano-wallet/blob/master/specifications/api/swagger.yaml
- node: https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/simple-scripts.md
self_xpub is expected to be a Bip32PublicKey as hex-encoded bytes