@neuraiproject/neurai-scripts 0.9.2 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -45,17 +45,35 @@ interface PartialFillExpiration {
45
45
  */
46
46
  value: bigint;
47
47
  }
48
+ /**
49
+ * Seller of an ECDSA-cancel order, in one of two forms:
50
+ * - `sellerAddress` alone: a legacy P2PKH address that is both the
51
+ * payment destination and the cancel key hash;
52
+ * - `paymentAddress` with `sellerPubKeyHash`: any payment destination
53
+ * and the HASH160 of the secp256k1 key that may cancel. This is the
54
+ * form for a strict ECDSA v3 (`nq1r…`) seller, whose address program is
55
+ * a commitment and not a key hash.
56
+ * Passing both forms, or neither, throws.
57
+ */
48
58
  interface PartialFillOrderParams {
49
59
  /**
50
- * Seller destination. Must be a legacy P2PKH address (base58check,
51
- * "t..." on testnet, "N..." on mainnet). The legacy covenant uses
52
- * `OP_HASH160 + OP_CHECKSIG` in its cancel branch, so every bech32m
53
- * address (AuthScript v1 `nc1p…`, PQ v2 `pq1z…` and ECDSA v3 `nq1r…`,
54
- * whose program is a commitment, not a key hash) is rejected — use
55
- * `buildPartialFillScriptPQ` for those destinations. The decoded 20-byte
56
- * PKH is hardcoded into the covenant (cancel branch + payment scriptPubKey).
60
+ * Legacy P2PKH seller (base58check, "t..." on testnet, "N..." on
61
+ * mainnet). Its 20-byte PKH is hardcoded as the cancel key hash and the
62
+ * payment output must be the P2PKH script of that same PKH. Bech32m
63
+ * addresses are rejected here: use `paymentAddress` + `sellerPubKeyHash`.
64
+ */
65
+ sellerAddress?: string;
66
+ /**
67
+ * Destination for the XNA payment: legacy P2PKH, generic AuthScript v1
68
+ * (`nc1p…`), strict PQ v2 (`pq1z…`) or strict ECDSA v3 (`nq1r…`). The
69
+ * covenant hardcodes its full scriptPubKey. Requires `sellerPubKeyHash`.
57
70
  */
58
- sellerAddress: string;
71
+ paymentAddress?: string;
72
+ /**
73
+ * HASH160 of the compressed secp256k1 public key allowed to cancel the
74
+ * order (20 bytes). Requires `paymentAddress`.
75
+ */
76
+ sellerPubKeyHash?: Uint8Array;
59
77
  /** Name of the asset being sold (e.g. "CAT"). */
60
78
  tokenId: string;
61
79
  /**
@@ -78,11 +96,13 @@ interface ParsedPartialFillOrder {
78
96
  /** Network the parser was invoked with (used for downstream address formatting). */
79
97
  network: Network;
80
98
  /**
81
- * Seller's 20-byte pubkey hash, extracted from the covenant's cancel
82
- * branch. The caller can base58check-encode this with the network's
83
- * legacy prefix to recover the seller address when needed.
99
+ * 20-byte HASH160 of the key allowed to cancel, extracted from the
100
+ * covenant's cancel branch. It equals the payment P2PKH hash only for
101
+ * orders built with `sellerAddress`.
84
102
  */
85
103
  sellerPubKeyHash: Uint8Array;
104
+ /** scriptPubKey bytes embedded in the covenant for the payment output. */
105
+ paymentScriptPubKey: Uint8Array;
86
106
  /** Asset name parsed from the covenant. */
87
107
  tokenId: string;
88
108
  /** Unit price parsed from the covenant, in XNA satoshis. */
@@ -321,6 +341,7 @@ declare const OP_SHA3_256 = 202;
321
341
  declare const OP_SHA512 = 203;
322
342
  declare const OP_CHECKSIG_ED25519 = 221;
323
343
  declare const OP_CHECKSIGADD = 222;
344
+ declare const OP_CHECKASSETAUTH = 223;
324
345
  declare const OP_NOP1 = 176;
325
346
  declare const OP_NOP9 = 184;
326
347
  declare const OP_NOP10 = 185;
@@ -433,6 +454,7 @@ declare const opcodes_d_OP_BOOLAND: typeof OP_BOOLAND;
433
454
  declare const opcodes_d_OP_BOOLOR: typeof OP_BOOLOR;
434
455
  declare const opcodes_d_OP_CAT: typeof OP_CAT;
435
456
  declare const opcodes_d_OP_CHAINCONTEXT: typeof OP_CHAINCONTEXT;
457
+ declare const opcodes_d_OP_CHECKASSETAUTH: typeof OP_CHECKASSETAUTH;
436
458
  declare const opcodes_d_OP_CHECKLOCKTIMEVERIFY: typeof OP_CHECKLOCKTIMEVERIFY;
437
459
  declare const opcodes_d_OP_CHECKMERKLEINCLUSION: typeof OP_CHECKMERKLEINCLUSION;
438
460
  declare const opcodes_d_OP_CHECKMULTISIG: typeof OP_CHECKMULTISIG;
@@ -589,6 +611,7 @@ declare namespace opcodes_d {
589
611
  opcodes_d_OP_BOOLOR as OP_BOOLOR,
590
612
  opcodes_d_OP_CAT as OP_CAT,
591
613
  opcodes_d_OP_CHAINCONTEXT as OP_CHAINCONTEXT,
614
+ opcodes_d_OP_CHECKASSETAUTH as OP_CHECKASSETAUTH,
592
615
  opcodes_d_OP_CHECKLOCKTIMEVERIFY as OP_CHECKLOCKTIMEVERIFY,
593
616
  opcodes_d_OP_CHECKMERKLEINCLUSION as OP_CHECKMERKLEINCLUSION,
594
617
  opcodes_d_OP_CHECKMULTISIG as OP_CHECKMULTISIG,
@@ -991,7 +1014,7 @@ interface SplitAssetWrappedResult {
991
1014
  declare function splitAssetWrappedScriptPubKey(spkHex: string): SplitAssetWrappedResult;
992
1015
 
993
1016
  /**
994
- * Partial-Fill Sell Order covenant script (three-branch).
1017
+ * Partial-Fill Sell Order covenant script (three-branch), ECDSA cancel.
995
1018
  *
996
1019
  * The covenant has three branches selected by the top of the unlock stack:
997
1020
  *
@@ -1011,11 +1034,8 @@ declare function splitAssetWrappedScriptPubKey(spkHex: string): SplitAssetWrappe
1011
1034
  * amount == inputAmount - N)
1012
1035
  * output[3+] = optional buyer change (not constrained by the covenant)
1013
1036
  *
1014
- * Continuity — the remainder UTXO reuses the spent covenant's AuthScript v1
1015
- * commitment via `OP_OUTPUTAUTHCOMMITMENT(2) == OP_TXFIELD(0x02)` (NIP-023).
1016
- * Comparing commitments rather than full scriptPubKeys is mandatory because
1017
- * the remainder's asset wrapper carries a different `amountRaw` than the
1018
- * spent UTXO's wrapper.
1037
+ * The order must be input 0 for either fill branch to succeed: see the
1038
+ * input-0 binding in `./fill-branches.ts`.
1019
1039
  *
1020
1040
  * Unlock stack shapes (scriptSig pushes, top → bottom):
1021
1041
  *
@@ -1023,10 +1043,12 @@ declare function splitAssetWrappedScriptPubKey(spkHex: string): SplitAssetWrappe
1023
1043
  * Full fill: <1> <0> (full-flag=1, cancel-flag=0)
1024
1044
  * Partial fill: <N> <0> <0> (N, full-flag=0, cancel-flag=0)
1025
1045
  *
1026
- * The cancel branch uses classical ECDSA (`OP_HASH160 + OP_CHECKSIG`) and
1027
- * commits to a 20-byte PKH — this variant only accepts legacy P2PKH
1028
- * addresses as the seller destination. For AuthScript bech32m destinations
1029
- * and post-quantum signing, use `buildPartialFillScriptPQ`.
1046
+ * The cancel branch uses classical ECDSA (`OP_HASH160 + OP_CHECKSIG`)
1047
+ * against a 20-byte key hash. The payment destination is independent of
1048
+ * that key: a legacy P2PKH seller passes `sellerAddress` (both at once),
1049
+ * any other seller with a secp256k1 key — typically a strict ECDSA v3
1050
+ * `nq1r…` wallet — passes `paymentAddress` and `sellerPubKeyHash`. For
1051
+ * post-quantum cancellation use `buildPartialFillScriptPQ`.
1030
1052
  */
1031
1053
 
1032
1054
  /**
@@ -1058,11 +1080,11 @@ declare function buildPartialFillScriptHex(params: PartialFillOrderParams): stri
1058
1080
  *
1059
1081
  * The message that gets signed is **SHA256(OP_TXHASH(selector))** — CSFS
1060
1082
  * single-SHA256s its message argument before verification, and OP_TXHASH
1061
- * produces its own 32-byte hash, so the seller computes:
1062
- * `sign(pqSeckey, SHA256(doubleSHA256(selected_tx_fields)))`
1083
+ * produces its own 32-byte NIP-042 tagged hash, so the seller computes:
1084
+ * `sign(pqSeckey, SHA256(TaggedHash("NeuraiTxHash", mask || selected_tx_fields)))`
1063
1085
  *
1064
- * Fill branches are identical in structure to the legacy variant — see
1065
- * `./script.ts` for the three-branch layout description.
1086
+ * The fill branches, including the input-0 binding, are shared with the
1087
+ * ECDSA variant — see `./fill-branches.ts`.
1066
1088
  */
1067
1089
 
1068
1090
  declare const DEFAULT_PQ_TXHASH_SELECTOR = 511;
@@ -1185,17 +1207,15 @@ declare function buildCancelWitnessStack(signatureDer: Uint8Array, pubKey: Uint8
1185
1207
  declare function buildCancelWitnessStackPQ(sigPQ: Uint8Array, pubKey: Uint8Array): Uint8Array[];
1186
1208
 
1187
1209
  /**
1188
- * Parser for the Partial-Fill Sell Order covenant (three-branch).
1189
- *
1190
- * Extracts `(sellerPubKeyHash, unitPriceSats, tokenId)` from a scriptPubKey
1191
- * that was produced by `buildPartialFillScript`. Walks the exact byte
1192
- * layout emitted by the builder and fails on any deviation — this is
1193
- * deliberate, so a downstream indexer can unambiguously classify a UTXO as
1194
- * "partial-fill order" or "unknown script" with no false positives.
1195
- *
1196
- * The full-fill and partial-fill branches share `(sellerScriptPubKey,
1197
- * unitPriceSats, tokenId)`. The parser reads both branches and verifies
1198
- * consistency; inconsistency throws.
1210
+ * Parser for the Partial-Fill Sell Order covenant (three-branch, ECDSA cancel).
1211
+ *
1212
+ * Extracts `(sellerPubKeyHash, paymentScriptPubKey, unitPriceSats, tokenId)`
1213
+ * from a scriptPubKey that was produced by `buildPartialFillScript`. Walks
1214
+ * the exact byte layout emitted by the builder and fails on any deviation —
1215
+ * this is deliberate, so a downstream indexer can unambiguously classify a
1216
+ * UTXO as "partial-fill order" or "unknown script" with no false positives.
1217
+ * Covenants built before the input-0 binding (neurai-scripts < 0.10.0) are
1218
+ * rejected: their fill branches can be drained through a foreign input 0.
1199
1219
  */
1200
1220
 
1201
1221
  /**
@@ -1210,9 +1230,8 @@ declare function parsePartialFillScript(script: Uint8Array | string, network?: N
1210
1230
  * payment scriptPubKey bytes (which may be P2PKH or AuthScript) and the
1211
1231
  * configured TXHASH selector.
1212
1232
  *
1213
- * The full-fill and partial-fill branches share `(paymentScriptPubKey,
1214
- * unitPriceSats, tokenId)`. The parser reads both branches and verifies
1215
- * consistency; inconsistency throws.
1233
+ * The fill branches (and their input-0 binding) are read by the shared
1234
+ * `readFillBranches`; covenants built before the binding are rejected.
1216
1235
  */
1217
1236
 
1218
1237
  /** Quick discriminator without throwing — useful for indexers. */
@@ -1223,5 +1242,126 @@ declare function isPartialFillScriptPQ(script: Uint8Array | string): boolean;
1223
1242
  */
1224
1243
  declare function parsePartialFillScriptPQ(script: Uint8Array | string, network?: Network): ParsedPartialFillOrderPQ;
1225
1244
 
1226
- export { AUTHSCRIPT_LEGACY, AUTHSCRIPT_NOAUTH, AUTHSCRIPT_PQ, AUTHSCRIPT_REF, DEFAULT_PQ_TXHASH_SELECTOR, MULTISIG_MAX_PUBKEYS, NULLDATA_STANDARD_MAX_SIZE, PQ_PUBKEY_PREFIX, STRICT_PQ_PUBKEY_LENGTH, ScriptBuilder, buildAuthScriptWitnessLegacy, buildAuthScriptWitnessNoAuth, buildAuthScriptWitnessPQ, buildAuthScriptWitnessRef, buildCancelScriptSig, buildCancelScriptSigHex, buildCancelScriptSigPQ, buildCancelScriptSigPQHex, buildCancelWitnessStack, buildCancelWitnessStackPQ, buildFillScriptSig, buildFillScriptSigHex, buildFillWitnessStack, buildPartialFillScript, buildPartialFillScriptHex, buildPartialFillScriptPQ, buildPartialFillScriptPQHex, buildStrictWitnessECDSA, buildStrictWitnessPQ, bytesEqual, bytesToHex, concatBytes, encodeAuthScriptScriptPubKey, encodeMultisigRedeemScript, encodeMultisigRedeemScriptHex, encodeNullDataScript, encodeP2PKHScriptPubKey, encodeP2SHScriptPubKey, encodeP2WPKHScriptPubKey, encodeP2WSHScriptPubKey, encodeScriptNum, encodeSellerScriptPubKey, ensureHex, hexToBytes, isPartialFillScriptPQ, opcodes_d as opcodes, parsePartialFillScript, parsePartialFillScriptPQ, pushBytes, pushHex, pushInt, splitAssetWrappedScriptPubKey };
1227
- export type { AssetMarker, AssetTransferPayload, AuthScriptWitnessLegacyInput, AuthScriptWitnessNoAuthInput, AuthScriptWitnessPQInput, AuthScriptWitnessRefInput, AuthScriptWitnessVersion, AuthType, EncodeNullDataOptions, MultisigParams, Network, OrderUtxo, ParsedPartialFillOrder, ParsedPartialFillOrderPQ, PartialFillExpiration, PartialFillExpirationMode, PartialFillOrderPQParams, PartialFillOrderParams, SellerAddressKind, SellerScriptPubKey, SplitAssetWrappedResult, StrictWitnessECDSAInput, StrictWitnessPQInput, TxInputRef };
1245
+ /**
1246
+ * NIP-054 P2AH custody policy (`OP_CHECKASSETAUTH`, AuthScript only).
1247
+ *
1248
+ * The policy is the witnessScript of a generic AuthScript v1 (NoAuth)
1249
+ * address. A spend of that address needs M of the N owner-token roles of the
1250
+ * list to approve it (G of them when an owner token held by the custody
1251
+ * leaves it):
1252
+ *
1253
+ * policy: <1> <M> <G> <role_1> ... <role_n> <n> OP_CHECKASSETAUTH
1254
+ * witness: [0x00, <c>, <a>, <b>, <T>, policy]
1255
+ *
1256
+ * Build the four arguments with `buildAssetAuthArgs` and wrap them with
1257
+ * `buildAuthScriptWitnessNoAuth({ args, witnessScript: policy })`. A role
1258
+ * approves either by spending its owner token from P2PKH or a strict
1259
+ * AuthScript address with a SIGHASH_ALL signature (synchronous spend, every
1260
+ * argument 0), or by a vote (see `vote.ts` and `proposal.ts`).
1261
+ */
1262
+ /** The only policy version defined by NIP-054. */
1263
+ declare const ASSETAUTH_POLICY_VERSION = 1;
1264
+ /** Highest number of roles in one policy. */
1265
+ declare const ASSETAUTH_MAX_ROLES = 16;
1266
+ interface AssetAuthPolicy {
1267
+ /** Roles that must approve a spend. */
1268
+ M: number;
1269
+ /** Roles that must approve when an owner token held by the custody leaves it (M <= G). */
1270
+ G: number;
1271
+ /** Owner token names (`NAME!`, `&NAME!`). Any order: the script lists them sorted by bytes. */
1272
+ roles: string[];
1273
+ }
1274
+ interface AssetAuthArgs {
1275
+ /** Proposal inputs: inputs 0..c-1 are committed by the proposal hash. */
1276
+ c: number;
1277
+ /** Proposal output prefix: outputs 0..a-1. */
1278
+ a: number;
1279
+ /** Proposal output suffix: the last b outputs. */
1280
+ b: number;
1281
+ /** Expiry height of the votes. */
1282
+ T: number;
1283
+ }
1284
+ declare function buildAssetAuthPolicyScript(policy: AssetAuthPolicy): Uint8Array;
1285
+ /** Inverse of `buildAssetAuthPolicyScript`; rejects any other script. */
1286
+ declare function parseAssetAuthPolicyScript(script: Uint8Array): AssetAuthPolicy;
1287
+ /**
1288
+ * Witness `args` [<c>, <a>, <b>, <T>] for the custody input: minimal script
1289
+ * numbers, 0 as the empty element. All default to 0, the synchronous spend.
1290
+ */
1291
+ declare function buildAssetAuthArgs({ c, a, b, T }?: Partial<AssetAuthArgs>): Uint8Array[];
1292
+
1293
+ /**
1294
+ * NIP-054 proposal hash H, the message a vote carries.
1295
+ *
1296
+ * H = TaggedHash("NeuraiAssetAuthProposal", m)
1297
+ * m = chainId (u8) || nVersion (i32) || nLockTime (u32) || T (u32)
1298
+ * || compact(c) || compact(a) || compact(b)
1299
+ * || (outpoint, nSequence) of inputs 0..c-1
1300
+ * || outputs 0..a-1 || the last b outputs
1301
+ * || compact(#refs) || reference inputs (version 3 only)
1302
+ *
1303
+ * Inputs from index c on and the outputs between the prefix and the suffix
1304
+ * (approvals, returns, fees, change) are left to the executor, so a skeleton
1305
+ * transaction with only the proposal inputs and outputs gives the same H as
1306
+ * the execution. Votes carry H as is, as the 32-byte (64-hex) message of
1307
+ * their owner-token transfer: `bytesToHex(hash)`.
1308
+ */
1309
+
1310
+ type AssetAuthChain = 'mainnet' | 'testnet' | 'regtest';
1311
+ /** The chain identifier the node commits to (OP_CHAINCONTEXT selector 0x03). */
1312
+ declare const ASSETAUTH_CHAIN_IDS: Readonly<Record<AssetAuthChain, number>>;
1313
+ interface AssetAuthProposal extends AssetAuthArgs {
1314
+ /** The execution, or a skeleton with its proposal inputs and outputs (hex). */
1315
+ rawTx: string;
1316
+ chain: AssetAuthChain;
1317
+ }
1318
+ declare function buildAssetAuthProposalMessage(proposal: AssetAuthProposal): Uint8Array;
1319
+ /** H: 32 bytes, in the order a vote carries it. */
1320
+ declare function assetAuthProposalHash(proposal: AssetAuthProposal): Uint8Array;
1321
+
1322
+ /**
1323
+ * NIP-054 vote lock: a wallet template (not part of the opcode) that holds a
1324
+ * role's owner token while it votes for a proposal.
1325
+ *
1326
+ * The holder sends the owner token, with the proposal hash H as its transfer
1327
+ * message, to the generic AuthScript v1 (NoAuth) address of this script:
1328
+ *
1329
+ * OP_IF execute, up to height T
1330
+ * OP_1 OP_CHAINCONTEXT <T> OP_LESSTHANOREQUAL OP_VERIFY
1331
+ * OP_SWAP OP_4 OP_INPUTFIELD <0x01 || C> OP_EQUALVERIFY
1332
+ * OP_OUTPUTSCRIPT <return> OP_EQUAL
1333
+ * OP_ELSE give it back, after T
1334
+ * OP_1 OP_CHAINCONTEXT <T> OP_GREATERTHAN OP_VERIFY
1335
+ * OP_NIP OP_OUTPUTSCRIPT <return> OP_EQUAL
1336
+ * OP_ENDIF
1337
+ *
1338
+ * Both branches send the token back to its owner (`return`, the full output
1339
+ * script). The execute branch also needs the custody, commitment C, at the
1340
+ * input it names. It must use OP_INPUTFIELD selector 04, the full
1341
+ * version-plus-commitment: selector 02 only reads the first 34 bytes of the
1342
+ * spent script, which a forged anyone-can-spend custody can match.
1343
+ */
1344
+ interface AssetAuthVoteLockParams {
1345
+ /** Expiry height of the proposal the vote is for. */
1346
+ T: number;
1347
+ /** 32-byte AuthScript commitment C of the custody, as in its scriptPubKey `OP_1 <C>` (hex or bytes). */
1348
+ custodyCommitment: string | Uint8Array;
1349
+ /** The output script that gives the owner token back to its holder (hex or bytes). */
1350
+ returnScriptPubKey: string | Uint8Array;
1351
+ }
1352
+ declare function buildAssetAuthVoteLockScript(params: AssetAuthVoteLockParams): Uint8Array;
1353
+ /**
1354
+ * Witness `args` of the execute branch: the index of the custody input and
1355
+ * the index of the output that returns the token.
1356
+ */
1357
+ declare function buildAssetAuthVoteExecuteArgs(params: {
1358
+ custodyInput: number;
1359
+ returnOutput: number;
1360
+ }): Uint8Array[];
1361
+ /** Witness `args` of the return branch, after T. */
1362
+ declare function buildAssetAuthVoteReturnArgs(params: {
1363
+ returnOutput: number;
1364
+ }): Uint8Array[];
1365
+
1366
+ export { ASSETAUTH_CHAIN_IDS, ASSETAUTH_MAX_ROLES, ASSETAUTH_POLICY_VERSION, AUTHSCRIPT_LEGACY, AUTHSCRIPT_NOAUTH, AUTHSCRIPT_PQ, AUTHSCRIPT_REF, DEFAULT_PQ_TXHASH_SELECTOR, MULTISIG_MAX_PUBKEYS, NULLDATA_STANDARD_MAX_SIZE, PQ_PUBKEY_PREFIX, STRICT_PQ_PUBKEY_LENGTH, ScriptBuilder, assetAuthProposalHash, buildAssetAuthArgs, buildAssetAuthPolicyScript, buildAssetAuthProposalMessage, buildAssetAuthVoteExecuteArgs, buildAssetAuthVoteLockScript, buildAssetAuthVoteReturnArgs, buildAuthScriptWitnessLegacy, buildAuthScriptWitnessNoAuth, buildAuthScriptWitnessPQ, buildAuthScriptWitnessRef, buildCancelScriptSig, buildCancelScriptSigHex, buildCancelScriptSigPQ, buildCancelScriptSigPQHex, buildCancelWitnessStack, buildCancelWitnessStackPQ, buildFillScriptSig, buildFillScriptSigHex, buildFillWitnessStack, buildPartialFillScript, buildPartialFillScriptHex, buildPartialFillScriptPQ, buildPartialFillScriptPQHex, buildStrictWitnessECDSA, buildStrictWitnessPQ, bytesEqual, bytesToHex, concatBytes, encodeAuthScriptScriptPubKey, encodeMultisigRedeemScript, encodeMultisigRedeemScriptHex, encodeNullDataScript, encodeP2PKHScriptPubKey, encodeP2SHScriptPubKey, encodeP2WPKHScriptPubKey, encodeP2WSHScriptPubKey, encodeScriptNum, encodeSellerScriptPubKey, ensureHex, hexToBytes, isPartialFillScriptPQ, opcodes_d as opcodes, parseAssetAuthPolicyScript, parsePartialFillScript, parsePartialFillScriptPQ, pushBytes, pushHex, pushInt, splitAssetWrappedScriptPubKey };
1367
+ export type { AssetAuthArgs, AssetAuthChain, AssetAuthPolicy, AssetAuthProposal, AssetAuthVoteLockParams, AssetMarker, AssetTransferPayload, AuthScriptWitnessLegacyInput, AuthScriptWitnessNoAuthInput, AuthScriptWitnessPQInput, AuthScriptWitnessRefInput, AuthScriptWitnessVersion, AuthType, EncodeNullDataOptions, MultisigParams, Network, OrderUtxo, ParsedPartialFillOrder, ParsedPartialFillOrderPQ, PartialFillExpiration, PartialFillExpirationMode, PartialFillOrderPQParams, PartialFillOrderParams, SellerAddressKind, SellerScriptPubKey, SplitAssetWrappedResult, StrictWitnessECDSAInput, StrictWitnessPQInput, TxInputRef };
package/dist/index.d.ts CHANGED
@@ -8,4 +8,5 @@ export { encodeSellerScriptPubKey } from './address.js';
8
8
  export type { SellerAddressKind, SellerScriptPubKey } from './address.js';
9
9
  export { splitAssetWrappedScriptPubKey } from './asset-wrapper.js';
10
10
  export type { AssetMarker, AssetTransferPayload, SplitAssetWrappedResult } from './asset-wrapper.js';
11
- export { buildPartialFillScript, buildPartialFillScriptHex, buildFillScriptSig, buildFillScriptSigHex, buildCancelScriptSig, buildCancelScriptSigHex, parsePartialFillScript, buildPartialFillScriptPQ, buildPartialFillScriptPQHex, buildCancelScriptSigPQ, buildCancelScriptSigPQHex, parsePartialFillScriptPQ, isPartialFillScriptPQ, DEFAULT_PQ_TXHASH_SELECTOR, buildFillWitnessStack, buildCancelWitnessStack, buildCancelWitnessStackPQ } from './covenants/index.js';
11
+ export { buildPartialFillScript, buildPartialFillScriptHex, buildFillScriptSig, buildFillScriptSigHex, buildCancelScriptSig, buildCancelScriptSigHex, parsePartialFillScript, buildPartialFillScriptPQ, buildPartialFillScriptPQHex, buildCancelScriptSigPQ, buildCancelScriptSigPQHex, parsePartialFillScriptPQ, isPartialFillScriptPQ, DEFAULT_PQ_TXHASH_SELECTOR, buildFillWitnessStack, buildCancelWitnessStack, buildCancelWitnessStackPQ, ASSETAUTH_POLICY_VERSION, ASSETAUTH_MAX_ROLES, ASSETAUTH_CHAIN_IDS, buildAssetAuthPolicyScript, parseAssetAuthPolicyScript, buildAssetAuthArgs, buildAssetAuthProposalMessage, assetAuthProposalHash, buildAssetAuthVoteLockScript, buildAssetAuthVoteExecuteArgs, buildAssetAuthVoteReturnArgs } from './covenants/index.js';
12
+ export type { AssetAuthPolicy, AssetAuthArgs, AssetAuthChain, AssetAuthProposal, AssetAuthVoteLockParams } from './covenants/index.js';