@qntx/ur 1.8.0 → 2.1.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/LICENSE-APACHE +201 -0
- package/README.md +7 -6
- package/dist/index-CcMfgay6.d.mts +54 -0
- package/dist/index-DTjNCWBI.d.mts +228 -0
- package/dist/index.d.mts +44 -163
- package/dist/index.mjs +2 -2
- package/dist/registry.d.mts +92 -33
- package/dist/registry.mjs +443 -93
- package/dist/typed-D-SyraAj.mjs +124 -0
- package/dist/typed.d.mts +3 -3
- package/dist/typed.mjs +3 -3
- package/dist/ur-7Ge3roVh.mjs +1993 -0
- package/package.json +22 -15
- package/dist/index-BeG2XIr5.d.mts +0 -59
- package/dist/rolldown-runtime-D7D4PA-g.mjs +0 -13
- package/dist/type-CZ0CIHJk.d.mts +0 -54
- package/dist/typed-BmHx2GWT.mjs +0 -150
- package/dist/ur-BUUcXyia.mjs +0 -1577
- /package/{LICENSE → LICENSE-MIT} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,182 +1,63 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region src/crc32.d.ts
|
|
1
|
+
import { C as parseUrType, S as isUrType, _ as UrError, a as UrEncoderOptions, b as UrLimit, c as FountainEncoder, d as FountainDecoder, f as Progress, g as DecoderLimits, h as DEFAULT_LIMITS, i as UrEncoder, l as FountainEncoderOptions, m as Part, n as UrDecoder, o as encodeUr, p as ReceiveResult, r as UrDecoderOptions, s as toQrString, t as DecodedUr, u as DecoderState, v as UrErrorCode, x as UrType, y as UrErrorInfo } from "./index-DTjNCWBI.mjs";
|
|
2
|
+
//#region src/consensus/crc32.d.ts
|
|
3
3
|
/** CRC-32 ISO-HDLC checksum of `data`. */
|
|
4
4
|
declare function checksum(data: Uint8Array): number;
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/constants.d.ts
|
|
7
7
|
/** BCR-2020-012 bytewords tables. */
|
|
8
8
|
/** Four-letter bytewords (index = byte value). */
|
|
9
|
-
declare const WORDS: ReadonlyArray<string>;
|
|
9
|
+
export declare const WORDS: ReadonlyArray<string>;
|
|
10
10
|
/** First+last letter of each byteword (UR minimal style). */
|
|
11
|
-
declare const MINIMALS: ReadonlyArray<string>;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
export declare const MINIMALS: ReadonlyArray<string>;
|
|
12
|
+
/** BCR-2024-008 bytemoji table (index = byte value). */
|
|
13
|
+
export declare const BYTEMOJIS: ReadonlyArray<string>;
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/bytewords/index.d.ts
|
|
15
16
|
/** Bytewords encoding styles (BCR-2020-012). */
|
|
16
|
-
type
|
|
17
|
+
type BytewordsStyle = "standard" | "uri" | "minimal";
|
|
17
18
|
/** Encode `data` with trailing CRC-32 as bytewords. Empty data is allowed. */
|
|
18
|
-
declare function
|
|
19
|
-
/**
|
|
20
|
-
export declare function
|
|
19
|
+
export declare function encodeBytewords(data: Uint8Array, style: BytewordsStyle): string;
|
|
20
|
+
/** The four checksum words of `data` alone (URKit `checksumWords` semantics). */
|
|
21
|
+
export declare function bytewordsChecksum(data: Uint8Array, style: BytewordsStyle): string;
|
|
22
|
+
/** Encoded length of `length` bytes (without a checksum) for `style`. */
|
|
23
|
+
export declare function bytewordsEncodedLength(length: number, style: BytewordsStyle): number;
|
|
24
|
+
/** Four-word standard-style identifier of a 4-byte digest (BCR-2020-012). */
|
|
25
|
+
export declare function bytewordsIdentifier(data: Uint8Array): string;
|
|
26
|
+
/** Four-emoji identifier of a 4-byte digest (BCR-2024-008). */
|
|
27
|
+
export declare function bytemojiIdentifier(data: Uint8Array): string;
|
|
21
28
|
/** Decode bytewords and verify CRC-32. Case-insensitive. */
|
|
22
|
-
declare function
|
|
29
|
+
export declare function decodeBytewords(text: string, style: BytewordsStyle): Uint8Array;
|
|
23
30
|
/** Canonicalize a 2–4 letter token to the full 4-letter lowercase byteword. */
|
|
24
31
|
export declare function canonicalizeByteword(token: string): string | undefined;
|
|
25
32
|
//#endregion
|
|
26
|
-
//#region src/fountain/part.d.ts
|
|
27
|
-
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
toCbor(): Uint8Array;
|
|
39
|
-
static fromCbor(bytes: Uint8Array, maxDataLen?: number, maxFragmentCount?: number): Part;
|
|
40
|
-
sequenceId(): string;
|
|
41
|
-
}
|
|
42
|
-
//#endregion
|
|
43
|
-
//#region src/fountain/decoder.d.ts
|
|
44
|
-
/** Fountain decoder with resource limits and fail-closed poison. */
|
|
45
|
-
export declare class FountainDecoder {
|
|
46
|
-
private readonly decoded;
|
|
47
|
-
private readonly received;
|
|
48
|
-
private readonly buffer;
|
|
49
|
-
private readonly bufferIndex;
|
|
50
|
-
private readonly queue;
|
|
51
|
-
private sequenceCount;
|
|
52
|
-
private messageLength;
|
|
53
|
-
private messageChecksum;
|
|
54
|
-
private fragmentLength;
|
|
55
|
-
private readonly limits;
|
|
56
|
-
private chooser;
|
|
57
|
-
private poisoned;
|
|
58
|
-
constructor(limits?: Partial<DecoderLimits>);
|
|
59
|
-
get maxFragmentDataLength(): number;
|
|
60
|
-
get maxFragmentCount(): number;
|
|
61
|
-
get isPoisoned(): boolean;
|
|
62
|
-
get poisonState(): DecoderPoison | undefined;
|
|
63
|
-
private poison;
|
|
64
|
-
private escalate;
|
|
65
|
-
/**
|
|
66
|
-
* Receive a fountain part.
|
|
67
|
-
*
|
|
68
|
-
* @returns Whether the part was newly ingested.
|
|
69
|
-
*/
|
|
70
|
-
receive(part: Part): boolean;
|
|
71
|
-
private enqueueSimple;
|
|
72
|
-
private processQueue;
|
|
73
|
-
private reduceBufferedPart;
|
|
74
|
-
private processComplex;
|
|
75
|
-
private insertReduced;
|
|
76
|
-
get complete(): boolean;
|
|
77
|
-
resolvedFragmentCount(): number | undefined;
|
|
78
|
-
get fragmentCount(): number;
|
|
79
|
-
validate(part: Part): boolean;
|
|
80
|
-
/** Decoded message if complete; otherwise `undefined`. */
|
|
81
|
-
message(): Uint8Array | undefined;
|
|
82
|
-
}
|
|
83
|
-
//#endregion
|
|
84
|
-
//#region src/fountain/encoder.d.ts
|
|
85
|
-
/** Fountain encoder. */
|
|
86
|
-
export declare class FountainEncoder {
|
|
87
|
-
private readonly parts;
|
|
88
|
-
private readonly sequenceCount;
|
|
89
|
-
private readonly messageLength;
|
|
90
|
-
private readonly messageChecksum;
|
|
91
|
-
private readonly chooser;
|
|
92
|
-
private currentSequence;
|
|
93
|
-
private constructor();
|
|
94
|
-
static create(message: Uint8Array, maxFragmentLength: number): FountainEncoder;
|
|
95
|
-
get currentSequenceNum(): number;
|
|
96
|
-
get fragmentCount(): number;
|
|
97
|
-
get complete(): boolean;
|
|
98
|
-
nextPart(): Part;
|
|
99
|
-
}
|
|
33
|
+
//#region src/fountain/part-cbor.d.ts
|
|
34
|
+
/**
|
|
35
|
+
* Encode a part as fixed-schema deterministic CBOR: `array(5) [sequence, sequenceCount,
|
|
36
|
+
* messageLength, checksum, data]` with shortest-form integers.
|
|
37
|
+
*/
|
|
38
|
+
export declare function encodePart(part: Part): Uint8Array;
|
|
39
|
+
/**
|
|
40
|
+
* Decode a part from CBOR. Lenient on integer width (UR-ADR-017): any well-formed definite-length
|
|
41
|
+
* encoding is accepted; re-encode with {@link encodePart} for the shortest form. `limits` apply
|
|
42
|
+
* `maxFragmentLength` to the bstr and `maxFragmentCount` to `sequenceCount`.
|
|
43
|
+
*/
|
|
44
|
+
export declare function decodePart(bytes: Uint8Array, limits?: Partial<DecoderLimits>): Part;
|
|
100
45
|
//#endregion
|
|
101
46
|
//#region src/ur/parse.d.ts
|
|
102
|
-
|
|
103
|
-
type ParsedUr = {
|
|
47
|
+
/** A decoded UR: a single-part message or one validated fountain part. */
|
|
48
|
+
type ParsedUr = Readonly<{
|
|
49
|
+
kind: "single";
|
|
104
50
|
type: UrType;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
};
|
|
112
|
-
/** Lowercase a UR string for case-insensitive QR transport. */
|
|
113
|
-
export declare function normalizeUr(uri: string): string;
|
|
114
|
-
/** Parse a UR (full-URI case fold). Does not decode bytewords. */
|
|
115
|
-
export declare function parse(uri: string): ParsedUr;
|
|
116
|
-
/** Parse an already-lowercased (or body-normalized) UR. */
|
|
117
|
-
export declare function parseNormalized(uri: string): ParsedUr;
|
|
118
|
-
//#endregion
|
|
119
|
-
//#region src/ur/index.d.ts
|
|
120
|
-
/** Encode a single-part UR. Empty data is allowed. */
|
|
121
|
-
export declare function encode(data: Uint8Array, type: UrType): string;
|
|
51
|
+
message: Uint8Array;
|
|
52
|
+
}> | Readonly<{
|
|
53
|
+
kind: "multi";
|
|
54
|
+
type: UrType;
|
|
55
|
+
part: Part;
|
|
56
|
+
}>;
|
|
122
57
|
/**
|
|
123
|
-
*
|
|
124
|
-
*
|
|
58
|
+
* Parse and decode a UR string. Case-insensitive for the URI and bytewords content. `limits` bounds
|
|
59
|
+
* the URI length and the multi-part CBOR fields. Throws `UrError`.
|
|
125
60
|
*/
|
|
126
|
-
export declare function
|
|
127
|
-
kind: Kind;
|
|
128
|
-
payload: Uint8Array;
|
|
129
|
-
};
|
|
130
|
-
/** Like {@link decode} but retains the normalized type. */
|
|
131
|
-
export declare function decodeWithType(uri: string): {
|
|
132
|
-
type: UrType;
|
|
133
|
-
kind: Kind;
|
|
134
|
-
payload: Uint8Array;
|
|
135
|
-
};
|
|
136
|
-
/** Decode a single-part UR payload. Multi-part URIs throw `NotSinglePart`. */
|
|
137
|
-
export declare function decodeMessage(uri: string): Uint8Array;
|
|
138
|
-
/** Uppercase UR string for denser QR alphanumeric mode. */
|
|
139
|
-
export declare function toQrString(uri: string): string;
|
|
140
|
-
/** UR encoder. `K == 1` emits single-part; otherwise fountain. */
|
|
141
|
-
export declare class Encoder {
|
|
142
|
-
private readonly fountain;
|
|
143
|
-
private readonly urType;
|
|
144
|
-
private readonly message;
|
|
145
|
-
private singleEmitted;
|
|
146
|
-
private constructor();
|
|
147
|
-
static create(message: Uint8Array, maxFragmentLength: number, type: UrType): Encoder;
|
|
148
|
-
static bytes(message: Uint8Array, maxFragmentLength: number): Encoder;
|
|
149
|
-
get isSinglePart(): boolean;
|
|
150
|
-
get fragmentCount(): number;
|
|
151
|
-
get currentIndex(): number;
|
|
152
|
-
get complete(): boolean;
|
|
153
|
-
nextPart(): string;
|
|
154
|
-
}
|
|
155
|
-
/** UR decoder with type stickiness and URI limits. */
|
|
156
|
-
export declare class Decoder {
|
|
157
|
-
private readonly fountain;
|
|
158
|
-
private readonly maxUriLen;
|
|
159
|
-
private readonly maxMessageLength;
|
|
160
|
-
private readonly expectedType;
|
|
161
|
-
private seenType;
|
|
162
|
-
private single;
|
|
163
|
-
private poisoned;
|
|
164
|
-
constructor(options?: {
|
|
165
|
-
limits?: Partial<DecoderLimits>;
|
|
166
|
-
expectedType?: UrType;
|
|
167
|
-
});
|
|
168
|
-
private poison;
|
|
169
|
-
private escalate;
|
|
170
|
-
get poisonState(): DecoderPoison | undefined;
|
|
171
|
-
receive(uri: string): void;
|
|
172
|
-
private receiveSingle;
|
|
173
|
-
private receiveFountain;
|
|
174
|
-
get complete(): boolean;
|
|
175
|
-
message(): Uint8Array | undefined;
|
|
176
|
-
resolvedFragmentCount(): number | undefined;
|
|
177
|
-
get fragmentCount(): number;
|
|
178
|
-
get type(): UrType | undefined;
|
|
179
|
-
get isPoisoned(): boolean;
|
|
180
|
-
}
|
|
61
|
+
export declare function parseUr(text: string, limits?: Partial<DecoderLimits>): ParsedUr;
|
|
181
62
|
//#endregion
|
|
182
|
-
export { DEFAULT_LIMITS, type DecoderLimits, type
|
|
63
|
+
export { type BytewordsStyle, DEFAULT_LIMITS, type DecodedUr, type DecoderLimits, type DecoderState, FountainDecoder, FountainEncoder, type FountainEncoderOptions, type ParsedUr, type Part, type Progress, type ReceiveResult, UrDecoder, type UrDecoderOptions, UrEncoder, type UrEncoderOptions, UrError, type UrErrorCode, type UrErrorInfo, type UrLimit, type UrType, checksum as crc32, encodeUr, isUrType, parseUrType, toQrString };
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
export { DEFAULT_LIMITS,
|
|
1
|
+
import { C as checksum, S as WORDS, _ as canonicalizeByteword, a as parseUr, b as BYTEMOJIS, c as decodePart, d as FountainDecoder, f as DEFAULT_LIMITS, g as bytewordsIdentifier, h as bytewordsEncodedLength, i as toQrString, l as encodePart, m as bytewordsChecksum, n as UrEncoder, o as isUrType, p as bytemojiIdentifier, r as encodeUr, s as parseUrType, t as UrDecoder, u as FountainEncoder, v as decodeBytewords, w as UrError, x as MINIMALS, y as encodeBytewords } from "./ur-7Ge3roVh.mjs";
|
|
2
|
+
export { BYTEMOJIS, DEFAULT_LIMITS, FountainDecoder, FountainEncoder, MINIMALS, UrDecoder, UrEncoder, UrError, WORDS, bytemojiIdentifier, bytewordsChecksum, bytewordsEncodedLength, bytewordsIdentifier, canonicalizeByteword, checksum as crc32, decodeBytewords, decodePart, encodeBytewords, encodePart, encodeUr, isUrType, parseUr, parseUrType, toQrString };
|
package/dist/registry.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as fromUr, c as
|
|
1
|
+
import { C as parseUrType, S as isUrType, _ as UrError, b as UrLimit, v as UrErrorCode, x as UrType, y as UrErrorInfo } from "./index-DTjNCWBI.mjs";
|
|
2
|
+
import { a as fromUr, c as toUr, i as fromTagged, l as Ur, n as codecMap, o as fromUrWith, r as codecUrTypes, s as toTagged, t as UrCodec } from "./index-CcMfgay6.mjs";
|
|
3
3
|
import { Cbor, CborDate, Tag } from "@blockchaincommons/dcbor";
|
|
4
4
|
//#region src/registry/seed.d.ts
|
|
5
5
|
type Seed = {
|
|
@@ -50,7 +50,7 @@ export declare const keypathCodec: UrCodec<Keypath>;
|
|
|
50
50
|
//#region src/registry/coin-info.d.ts
|
|
51
51
|
export declare const CoinType: {
|
|
52
52
|
readonly btc: 0;
|
|
53
|
-
readonly eth:
|
|
53
|
+
readonly eth: 0x3c;
|
|
54
54
|
};
|
|
55
55
|
export declare const Network: {
|
|
56
56
|
readonly mainnet: 0;
|
|
@@ -62,6 +62,24 @@ type CoinInfo = {
|
|
|
62
62
|
};
|
|
63
63
|
export declare const coinInfoCodec: UrCodec<CoinInfo>;
|
|
64
64
|
//#endregion
|
|
65
|
+
//#region src/registry/eckey.d.ts
|
|
66
|
+
type EcKey = {
|
|
67
|
+
readonly curve?: number;
|
|
68
|
+
readonly isPrivate?: boolean;
|
|
69
|
+
readonly data: Uint8Array;
|
|
70
|
+
};
|
|
71
|
+
export declare const ecKeyCodec: UrCodec<EcKey>;
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/registry/address.d.ts
|
|
74
|
+
declare const ADDRESS_TYPES: readonly ["p2pkh", "p2sh", "p2wpkh"];
|
|
75
|
+
type AddressType = (typeof ADDRESS_TYPES)[number];
|
|
76
|
+
type Address = {
|
|
77
|
+
readonly info?: CoinInfo;
|
|
78
|
+
readonly type?: AddressType;
|
|
79
|
+
readonly data: Uint8Array;
|
|
80
|
+
};
|
|
81
|
+
export declare const addressCodec: UrCodec<Address>;
|
|
82
|
+
//#endregion
|
|
65
83
|
//#region src/registry/hdkey.d.ts
|
|
66
84
|
type MasterHdKey = {
|
|
67
85
|
readonly kind: "master";
|
|
@@ -83,6 +101,34 @@ type DerivedHdKey = {
|
|
|
83
101
|
type HdKey = MasterHdKey | DerivedHdKey;
|
|
84
102
|
export declare const hdKeyCodec: UrCodec<HdKey>;
|
|
85
103
|
//#endregion
|
|
104
|
+
//#region src/registry/script-expression.d.ts
|
|
105
|
+
type DescriptorKey = {
|
|
106
|
+
readonly kind: "hdkey";
|
|
107
|
+
readonly key: HdKey;
|
|
108
|
+
} | {
|
|
109
|
+
readonly kind: "eckey";
|
|
110
|
+
readonly key: EcKey;
|
|
111
|
+
} | {
|
|
112
|
+
readonly kind: "address";
|
|
113
|
+
readonly address: Address;
|
|
114
|
+
};
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region src/registry/output-descriptor.d.ts
|
|
117
|
+
type OutputDescriptor = {
|
|
118
|
+
readonly source: string;
|
|
119
|
+
readonly keys: ReadonlyArray<DescriptorKey>;
|
|
120
|
+
readonly name?: string;
|
|
121
|
+
readonly note?: string;
|
|
122
|
+
};
|
|
123
|
+
export declare const outputDescriptorCodec: UrCodec<OutputDescriptor>;
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region src/registry/account-descriptor.d.ts
|
|
126
|
+
type AccountDescriptor = {
|
|
127
|
+
readonly masterFingerprint: number;
|
|
128
|
+
readonly outputDescriptors: ReadonlyArray<OutputDescriptor>;
|
|
129
|
+
};
|
|
130
|
+
export declare const accountDescriptorCodec: UrCodec<AccountDescriptor>;
|
|
131
|
+
//#endregion
|
|
86
132
|
//#region src/registry/sskr.d.ts
|
|
87
133
|
type SskrShare = {
|
|
88
134
|
readonly identifier: number;
|
|
@@ -101,13 +147,6 @@ export declare const ENVELOPE_MAX_DEPTH = 64;
|
|
|
101
147
|
export declare function assertEnvelopeContent(cbor: Cbor, depth?: number): void;
|
|
102
148
|
export declare const envelopeCodec: UrCodec<Cbor>;
|
|
103
149
|
//#endregion
|
|
104
|
-
//#region src/registry/codecs.d.ts
|
|
105
|
-
export declare function codecMap(codecs: ReadonlyArray<UrCodec<unknown>>): ReadonlyMap<string, UrCodec<unknown>>;
|
|
106
|
-
export declare function fromUrStringWith(uri: string, codecs: ReadonlyMap<string, UrCodec<unknown>>): {
|
|
107
|
-
readonly type: string;
|
|
108
|
-
readonly value: unknown;
|
|
109
|
-
};
|
|
110
|
-
//#endregion
|
|
111
150
|
//#region src/registry/digest.d.ts
|
|
112
151
|
/** BCR-2021-002: SHA-256 of the raw seed payload, not the CBOR map. */
|
|
113
152
|
export declare function seedDigest(seed: Seed): Uint8Array;
|
|
@@ -116,27 +155,47 @@ export declare function hdKeyDigestSource(key: HdKey): Uint8Array;
|
|
|
116
155
|
export declare function hdKeyDigest(key: HdKey): Uint8Array;
|
|
117
156
|
//#endregion
|
|
118
157
|
//#region src/registry/tags.d.ts
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
export declare const
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
158
|
+
/**
|
|
159
|
+
* Codecs that exist in this version. The `crypto-*` entries are the deprecated v1 tags
|
|
160
|
+
* (BCR-2020-006): read-only, never written. `SCRIPT_TAGS` are the BCR-2020-010 script-expression
|
|
161
|
+
* tags embedded inside v1 crypto-output bodies.
|
|
162
|
+
*/
|
|
163
|
+
export declare const TAGS: Readonly<{
|
|
164
|
+
envelope: Tag;
|
|
165
|
+
seed: Tag;
|
|
166
|
+
hdkey: Tag;
|
|
167
|
+
keypath: Tag;
|
|
168
|
+
"coin-info": Tag;
|
|
169
|
+
eckey: Tag;
|
|
170
|
+
address: Tag;
|
|
171
|
+
"output-descriptor": Tag;
|
|
172
|
+
sskr: Tag;
|
|
173
|
+
psbt: Tag;
|
|
174
|
+
"account-descriptor": Tag;
|
|
175
|
+
"crypto-seed": Tag;
|
|
176
|
+
"crypto-hdkey": Tag;
|
|
177
|
+
"crypto-keypath": Tag;
|
|
178
|
+
"crypto-coin-info": Tag;
|
|
179
|
+
"crypto-eckey": Tag;
|
|
180
|
+
"crypto-address": Tag;
|
|
181
|
+
"crypto-output": Tag;
|
|
182
|
+
"crypto-sskr": Tag;
|
|
183
|
+
"crypto-psbt": Tag;
|
|
184
|
+
"crypto-account": Tag;
|
|
185
|
+
}>;
|
|
186
|
+
/** BCR-2020-010 script-expression tags by descriptor function name. */
|
|
187
|
+
export declare const SCRIPT_TAGS: Readonly<{
|
|
188
|
+
sh: Tag;
|
|
189
|
+
wsh: Tag;
|
|
190
|
+
pk: Tag;
|
|
191
|
+
pkh: Tag;
|
|
192
|
+
wpkh: Tag;
|
|
193
|
+
combo: Tag;
|
|
194
|
+
multi: Tag;
|
|
195
|
+
sortedmulti: Tag;
|
|
196
|
+
raw: Tag;
|
|
197
|
+
tr: Tag;
|
|
198
|
+
cosigner: Tag;
|
|
199
|
+
}>;
|
|
141
200
|
//#endregion
|
|
142
|
-
export { type CoinInfo, type DerivedHdKey, type HdKey, type Keypath, type MasterHdKey,
|
|
201
|
+
export { type AccountDescriptor, type Address, type AddressType, type CoinInfo, type DerivedHdKey, type DescriptorKey, type EcKey, type HdKey, type Keypath, type MasterHdKey, type OutputDescriptor, type PathComponent, type Psbt, type Seed, type SskrShare, Ur, type UrCodec, UrError, type UrErrorCode, type UrErrorInfo, type UrLimit, type UrType, codecMap, codecUrTypes, fromTagged, fromUr, fromUrWith, isUrType, parseUrType, toTagged, toUr };
|