@did-btcr2/method 0.22.0 → 0.24.1

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.
Files changed (164) hide show
  1. package/README.md +96 -50
  2. package/dist/browser.js +35708 -37764
  3. package/dist/browser.mjs +35707 -37763
  4. package/dist/cjs/core/beacon/aggregation/cohort/index.js +13 -2
  5. package/dist/cjs/core/beacon/aggregation/cohort/index.js.map +1 -1
  6. package/dist/cjs/core/beacon/aggregation/cohort/messages/base.js +7 -2
  7. package/dist/cjs/core/beacon/aggregation/cohort/messages/base.js.map +1 -1
  8. package/dist/cjs/core/beacon/aggregation/communication/adapter/did-comm.js +6 -11
  9. package/dist/cjs/core/beacon/aggregation/communication/adapter/did-comm.js.map +1 -1
  10. package/dist/cjs/core/beacon/aggregation/communication/adapter/nostr.js +5 -8
  11. package/dist/cjs/core/beacon/aggregation/communication/adapter/nostr.js.map +1 -1
  12. package/dist/cjs/core/beacon/aggregation/coordinator.js +40 -44
  13. package/dist/cjs/core/beacon/aggregation/coordinator.js.map +1 -1
  14. package/dist/cjs/core/beacon/aggregation/participant.js +35 -38
  15. package/dist/cjs/core/beacon/aggregation/participant.js.map +1 -1
  16. package/dist/cjs/core/beacon/aggregation/session/index.js +18 -7
  17. package/dist/cjs/core/beacon/aggregation/session/index.js.map +1 -1
  18. package/dist/cjs/core/beacon/cas-beacon.js +1 -1
  19. package/dist/cjs/core/beacon/cas-beacon.js.map +1 -1
  20. package/dist/cjs/core/beacon/signal-discovery.js +6 -6
  21. package/dist/cjs/core/beacon/signal-discovery.js.map +1 -1
  22. package/dist/cjs/core/beacon/singleton.js +18 -17
  23. package/dist/cjs/core/beacon/singleton.js.map +1 -1
  24. package/dist/cjs/core/beacon/smt-beacon.js +1 -1
  25. package/dist/cjs/core/beacon/smt-beacon.js.map +1 -1
  26. package/dist/cjs/core/identifier.js +11 -13
  27. package/dist/cjs/core/identifier.js.map +1 -1
  28. package/dist/cjs/core/resolve.js +25 -22
  29. package/dist/cjs/core/resolve.js.map +1 -1
  30. package/dist/cjs/core/update.js +4 -4
  31. package/dist/cjs/core/update.js.map +1 -1
  32. package/dist/cjs/did-btcr2.js +11 -16
  33. package/dist/cjs/did-btcr2.js.map +1 -1
  34. package/dist/cjs/index.js +0 -1
  35. package/dist/cjs/index.js.map +1 -1
  36. package/dist/cjs/utils/did-document.js +22 -21
  37. package/dist/cjs/utils/did-document.js.map +1 -1
  38. package/dist/esm/core/beacon/aggregation/cohort/index.js +13 -2
  39. package/dist/esm/core/beacon/aggregation/cohort/index.js.map +1 -1
  40. package/dist/esm/core/beacon/aggregation/cohort/messages/base.js +7 -2
  41. package/dist/esm/core/beacon/aggregation/cohort/messages/base.js.map +1 -1
  42. package/dist/esm/core/beacon/aggregation/communication/adapter/did-comm.js +6 -11
  43. package/dist/esm/core/beacon/aggregation/communication/adapter/did-comm.js.map +1 -1
  44. package/dist/esm/core/beacon/aggregation/communication/adapter/nostr.js +5 -8
  45. package/dist/esm/core/beacon/aggregation/communication/adapter/nostr.js.map +1 -1
  46. package/dist/esm/core/beacon/aggregation/coordinator.js +40 -44
  47. package/dist/esm/core/beacon/aggregation/coordinator.js.map +1 -1
  48. package/dist/esm/core/beacon/aggregation/participant.js +35 -38
  49. package/dist/esm/core/beacon/aggregation/participant.js.map +1 -1
  50. package/dist/esm/core/beacon/aggregation/session/index.js +18 -7
  51. package/dist/esm/core/beacon/aggregation/session/index.js.map +1 -1
  52. package/dist/esm/core/beacon/cas-beacon.js +1 -1
  53. package/dist/esm/core/beacon/cas-beacon.js.map +1 -1
  54. package/dist/esm/core/beacon/signal-discovery.js +6 -6
  55. package/dist/esm/core/beacon/signal-discovery.js.map +1 -1
  56. package/dist/esm/core/beacon/singleton.js +18 -17
  57. package/dist/esm/core/beacon/singleton.js.map +1 -1
  58. package/dist/esm/core/beacon/smt-beacon.js +1 -1
  59. package/dist/esm/core/beacon/smt-beacon.js.map +1 -1
  60. package/dist/esm/core/identifier.js +11 -13
  61. package/dist/esm/core/identifier.js.map +1 -1
  62. package/dist/esm/core/resolve.js +25 -22
  63. package/dist/esm/core/resolve.js.map +1 -1
  64. package/dist/esm/core/update.js +4 -4
  65. package/dist/esm/core/update.js.map +1 -1
  66. package/dist/esm/did-btcr2.js +11 -16
  67. package/dist/esm/did-btcr2.js.map +1 -1
  68. package/dist/esm/index.js +0 -1
  69. package/dist/esm/index.js.map +1 -1
  70. package/dist/esm/utils/did-document.js +22 -21
  71. package/dist/esm/utils/did-document.js.map +1 -1
  72. package/dist/types/core/beacon/aggregation/cohort/index.d.ts +2 -1
  73. package/dist/types/core/beacon/aggregation/cohort/index.d.ts.map +1 -1
  74. package/dist/types/core/beacon/aggregation/cohort/messages/base.d.ts +2 -1
  75. package/dist/types/core/beacon/aggregation/cohort/messages/base.d.ts.map +1 -1
  76. package/dist/types/core/beacon/aggregation/cohort/messages/constants.d.ts +1 -0
  77. package/dist/types/core/beacon/aggregation/cohort/messages/index.d.ts +1 -0
  78. package/dist/types/core/beacon/aggregation/cohort/messages/keygen/cohort-advert.d.ts +1 -0
  79. package/dist/types/core/beacon/aggregation/cohort/messages/keygen/cohort-ready.d.ts +2 -2
  80. package/dist/types/core/beacon/aggregation/cohort/messages/keygen/cohort-ready.d.ts.map +1 -1
  81. package/dist/types/core/beacon/aggregation/cohort/messages/keygen/opt-in-accept.d.ts +1 -0
  82. package/dist/types/core/beacon/aggregation/cohort/messages/keygen/opt-in.d.ts +1 -0
  83. package/dist/types/core/beacon/aggregation/cohort/messages/keygen/subscribe.d.ts +1 -0
  84. package/dist/types/core/beacon/aggregation/cohort/messages/sign/aggregated-nonce.d.ts +1 -0
  85. package/dist/types/core/beacon/aggregation/cohort/messages/sign/authorization-request.d.ts +1 -0
  86. package/dist/types/core/beacon/aggregation/cohort/messages/sign/nonce-contribution.d.ts +1 -0
  87. package/dist/types/core/beacon/aggregation/cohort/messages/sign/request-signature.d.ts +1 -0
  88. package/dist/types/core/beacon/aggregation/cohort/messages/sign/signature-authorization.d.ts +1 -0
  89. package/dist/types/core/beacon/aggregation/cohort/status.d.ts +1 -0
  90. package/dist/types/core/beacon/aggregation/communication/adapter/did-comm.d.ts +4 -3
  91. package/dist/types/core/beacon/aggregation/communication/adapter/did-comm.d.ts.map +1 -1
  92. package/dist/types/core/beacon/aggregation/communication/adapter/nostr.d.ts +5 -3
  93. package/dist/types/core/beacon/aggregation/communication/adapter/nostr.d.ts.map +1 -1
  94. package/dist/types/core/beacon/aggregation/communication/error.d.ts +1 -0
  95. package/dist/types/core/beacon/aggregation/communication/factory.d.ts +1 -0
  96. package/dist/types/core/beacon/aggregation/communication/service.d.ts +3 -2
  97. package/dist/types/core/beacon/aggregation/communication/service.d.ts.map +1 -1
  98. package/dist/types/core/beacon/aggregation/coordinator.d.ts +1 -0
  99. package/dist/types/core/beacon/aggregation/coordinator.d.ts.map +1 -1
  100. package/dist/types/core/beacon/aggregation/participant.d.ts +1 -0
  101. package/dist/types/core/beacon/aggregation/participant.d.ts.map +1 -1
  102. package/dist/types/core/beacon/aggregation/session/index.d.ts +2 -1
  103. package/dist/types/core/beacon/aggregation/session/index.d.ts.map +1 -1
  104. package/dist/types/core/beacon/aggregation/session/status.d.ts +1 -0
  105. package/dist/types/core/beacon/beacon.d.ts +4 -3
  106. package/dist/types/core/beacon/beacon.d.ts.map +1 -1
  107. package/dist/types/core/beacon/cas-beacon.d.ts +4 -3
  108. package/dist/types/core/beacon/cas-beacon.d.ts.map +1 -1
  109. package/dist/types/core/beacon/error.d.ts +1 -0
  110. package/dist/types/core/beacon/factory.d.ts +1 -0
  111. package/dist/types/core/beacon/interfaces.d.ts +1 -0
  112. package/dist/types/core/beacon/signal-discovery.d.ts +6 -5
  113. package/dist/types/core/beacon/signal-discovery.d.ts.map +1 -1
  114. package/dist/types/core/beacon/singleton.d.ts +4 -4
  115. package/dist/types/core/beacon/singleton.d.ts.map +1 -1
  116. package/dist/types/core/beacon/smt-beacon.d.ts +4 -3
  117. package/dist/types/core/beacon/smt-beacon.d.ts.map +1 -1
  118. package/dist/types/core/beacon/utils.d.ts +1 -0
  119. package/dist/types/core/identifier.d.ts +18 -21
  120. package/dist/types/core/identifier.d.ts.map +1 -1
  121. package/dist/types/core/interfaces.d.ts +3 -2
  122. package/dist/types/core/interfaces.d.ts.map +1 -1
  123. package/dist/types/core/resolve.d.ts +4 -3
  124. package/dist/types/core/resolve.d.ts.map +1 -1
  125. package/dist/types/core/types.d.ts +1 -0
  126. package/dist/types/core/update.d.ts +3 -2
  127. package/dist/types/core/update.d.ts.map +1 -1
  128. package/dist/types/did-btcr2.d.ts +5 -4
  129. package/dist/types/did-btcr2.d.ts.map +1 -1
  130. package/dist/types/index.d.ts +1 -1
  131. package/dist/types/index.d.ts.map +1 -1
  132. package/dist/types/utils/appendix.d.ts +1 -0
  133. package/dist/types/utils/did-document-builder.d.ts +1 -0
  134. package/dist/types/utils/did-document.d.ts +5 -7
  135. package/dist/types/utils/did-document.d.ts.map +1 -1
  136. package/package.json +5 -6
  137. package/src/core/beacon/aggregation/cohort/index.ts +13 -2
  138. package/src/core/beacon/aggregation/cohort/messages/base.ts +7 -2
  139. package/src/core/beacon/aggregation/cohort/messages/keygen/cohort-ready.ts +1 -1
  140. package/src/core/beacon/aggregation/communication/adapter/did-comm.ts +9 -15
  141. package/src/core/beacon/aggregation/communication/adapter/nostr.ts +9 -11
  142. package/src/core/beacon/aggregation/communication/service.ts +2 -2
  143. package/src/core/beacon/aggregation/coordinator.ts +40 -44
  144. package/src/core/beacon/aggregation/participant.ts +38 -40
  145. package/src/core/beacon/aggregation/session/index.ts +18 -7
  146. package/src/core/beacon/beacon.ts +3 -3
  147. package/src/core/beacon/cas-beacon.ts +3 -3
  148. package/src/core/beacon/signal-discovery.ts +9 -9
  149. package/src/core/beacon/singleton.ts +20 -20
  150. package/src/core/beacon/smt-beacon.ts +3 -3
  151. package/src/core/identifier.ts +31 -28
  152. package/src/core/interfaces.ts +2 -2
  153. package/src/core/resolve.ts +32 -26
  154. package/src/core/update.ts +6 -6
  155. package/src/did-btcr2.ts +21 -21
  156. package/src/index.ts +0 -1
  157. package/src/utils/did-document.ts +24 -20
  158. package/dist/cjs/utils/general.js +0 -195
  159. package/dist/cjs/utils/general.js.map +0 -1
  160. package/dist/esm/utils/general.js +0 -195
  161. package/dist/esm/utils/general.js.map +0 -1
  162. package/dist/types/utils/general.d.ts +0 -85
  163. package/dist/types/utils/general.d.ts.map +0 -1
  164. package/src/utils/general.ts +0 -204
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/beacon/aggregation/cohort/messages/base.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,yBAAyB,CAAC;AAErD,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,UAAU,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,iBAAiB,CAAC,EAAE,UAAU,CAAC;IAC/B,gBAAgB,CAAC,EAAE,UAAU,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB,CAAC;AAEF,qBAAa,WAAW;IACf,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC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I,EAAE,EAAE,IAAI;IAO1C;;;OAGG;IACI,MAAM,IAAI,IAAI;CAQtB"}
@@ -8,3 +8,4 @@ export declare const BEACON_COHORT_AUTHORIZATION_REQUEST = "https://btcr2.dev/mu
8
8
  export declare const BEACON_COHORT_NONCE_CONTRIBUTION = "https://btcr2.dev/musig2/sign/beacon/cohort_nonce_contribution";
9
9
  export declare const BEACON_COHORT_AGGREGATED_NONCE = "https://btcr2.dev/musig2/sign/beacon/cohort_aggregated_nonce";
10
10
  export declare const BEACON_COHORT_SIGNATURE_AUTHORIZATION = "https://btcr2.dev/musig2/sign/beacon/cohort_signature_authorization";
11
+ //# sourceMappingURL=constants.d.ts.map
@@ -62,3 +62,4 @@ export declare class AggregateBeaconMessage {
62
62
  */
63
63
  static isSignMessageValue(value: string): boolean;
64
64
  }
65
+ //# sourceMappingURL=index.d.ts.map
@@ -26,3 +26,4 @@ export declare class BeaconCohortAdvertMessage extends BaseMessage {
26
26
  */
27
27
  static fromJSON(data: Maybe<CohortAdvertMessage>): BeaconCohortAdvertMessage;
28
28
  }
29
+ //# sourceMappingURL=cohort-advert.d.ts.map
@@ -1,8 +1,7 @@
1
1
  import { Maybe } from '@did-btcr2/common';
2
2
  import { BaseMessage } from '../base.js';
3
- import { BEACON_COHORT_READY } from '../constants.js';
4
3
  export interface CohortReadyMessage {
5
- type?: typeof BEACON_COHORT_READY;
4
+ type?: string;
6
5
  to: string;
7
6
  from: string;
8
7
  cohortId: string;
@@ -24,3 +23,4 @@ export declare class BeaconCohortReadyMessage extends BaseMessage {
24
23
  */
25
24
  static fromJSON(data: Maybe<CohortReadyMessage>): BeaconCohortReadyMessage;
26
25
  }
26
+ //# sourceMappingURL=cohort-ready.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cohort-ready.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/beacon/aggregation/cohort/messages/keygen/cohort-ready.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,OAAO,mBAAmB,CAAC;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;CAC/B;AAED;;;;;GAKG;AACH,qBAAa,wBAAyB,SAAQ,WAAW;gBAC3C,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,UAAU,EAAE,EAAE,kBAAkB;IAMjF;;;;OAIG;WACW,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,kBAAkB,CAAC,GAAG,wBAAwB;CAOlF"}
1
+ {"version":3,"file":"cohort-ready.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/beacon/aggregation/cohort/messages/keygen/cohort-ready.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAGzC,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;CAC/B;AAED;;;;;GAKG;AACH,qBAAa,wBAAyB,SAAQ,WAAW;gBAC3C,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,UAAU,EAAE,EAAE,kBAAkB;IAMjF;;;;OAIG;WACW,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,kBAAkB,CAAC,GAAG,wBAAwB;CAOlF"}
@@ -21,3 +21,4 @@ export declare class BeaconCohortOptInAcceptMessage extends BaseMessage {
21
21
  */
22
22
  static fromJSON(data: Maybe<CohortOptInAcceptMessage>): BeaconCohortOptInAcceptMessage;
23
23
  }
24
+ //# sourceMappingURL=opt-in-accept.d.ts.map
@@ -17,3 +17,4 @@ export declare class BeaconCohortOptInMessage extends BaseMessage {
17
17
  */
18
18
  static fromJSON(data: Maybe<CohortOptInMessage>): BeaconCohortOptInMessage;
19
19
  }
20
+ //# sourceMappingURL=opt-in.d.ts.map
@@ -22,3 +22,4 @@ export declare class BeaconCohortSubscribeMessage extends BaseMessage {
22
22
  */
23
23
  static fromJSON(data: Maybe<CohortSubscribeMessage>): BeaconCohortSubscribeMessage;
24
24
  }
25
+ //# sourceMappingURL=subscribe.d.ts.map
@@ -22,3 +22,4 @@ export declare class BeaconCohortAggregatedNonceMessage extends BaseMessage {
22
22
  */
23
23
  static fromJSON(data: Maybe<CohortAggregatedNonceMessage>): BeaconCohortAggregatedNonceMessage;
24
24
  }
25
+ //# sourceMappingURL=aggregated-nonce.d.ts.map
@@ -23,3 +23,4 @@ export declare class BeaconCohortAuthorizationRequestMessage extends BaseMessage
23
23
  */
24
24
  static fromJSON(data: Maybe<CohortAuthorizationRequestMessage>): BeaconCohortAuthorizationRequestMessage;
25
25
  }
26
+ //# sourceMappingURL=authorization-request.d.ts.map
@@ -23,3 +23,4 @@ export declare class BeaconCohortNonceContributionMessage extends BaseMessage {
23
23
  */
24
24
  static fromJSON(data: Maybe<CohortNonceContributionMessage>): BeaconCohortNonceContributionMessage;
25
25
  }
26
+ //# sourceMappingURL=nonce-contribution.d.ts.map
@@ -23,3 +23,4 @@ export declare class BeaconCohortRequestSignatureMessage extends BaseMessage {
23
23
  */
24
24
  static fromJSON(data: Maybe<CohortRequestSignatureMessage>): BeaconCohortRequestSignatureMessage;
25
25
  }
26
+ //# sourceMappingURL=request-signature.d.ts.map
@@ -24,3 +24,4 @@ export declare class BeaconCohortSignatureAuthorizationMessage extends BaseMessa
24
24
  */
25
25
  static fromJSON(data: Maybe<CohortSignatureAuthorizationMessage>): BeaconCohortSignatureAuthorizationMessage;
26
26
  }
27
+ //# sourceMappingURL=signature-authorization.d.ts.map
@@ -5,3 +5,4 @@ export declare enum COHORT_STATUS {
5
5
  COHORT_SET_STATUS = "COHORT_SET",
6
6
  COHORT_FAILED = "FAILED"
7
7
  }
8
+ //# sourceMappingURL=status.d.ts.map
@@ -1,6 +1,6 @@
1
- import { Maybe } from '@did-btcr2/common';
2
1
  import { RawSchnorrKeyPair } from '@did-btcr2/keypair';
3
2
  import { AggregateBeaconMessageType } from '../../cohort/messages/index.js';
3
+ import { BaseMessage } from '../../cohort/messages/base.js';
4
4
  import { CommunicationService, MessageHandler, ServiceAdapterConfig, ServiceAdapterIdentity } from '../service.js';
5
5
  /**
6
6
  * DidCommAdapterConfig is a configuration class for the DidCommAdapter.
@@ -73,12 +73,12 @@ export declare class DidCommAdapter implements CommunicationService {
73
73
  /**
74
74
  * Sends a message to a recipient using the Nostr protocol.
75
75
  * This method is a placeholder and should be implemented with actual Nostr message sending logic.
76
- * @param {Maybe<AggregateBeaconMessageType>} _message The message to send, typically containing the content and metadata.
76
+ * @param {AggregateBeaconMessageType} _message The message to send, typically containing the content and metadata.
77
77
  * @param {string} _recipient The public key or identifier of the recipient.
78
78
  * @param {string} _sender The public key or identifier of the sender.
79
79
  * @returns {Promise<void>} A promise that resolves when the message is sent.
80
80
  */
81
- sendMessage(_message: Maybe<AggregateBeaconMessageType>, _recipient: string, _sender: string): Promise<void | Promise<string>[]>;
81
+ sendMessage(_message: AggregateBeaconMessageType | BaseMessage, _recipient: string, _sender: string): Promise<void | Promise<string>[]>;
82
82
  /**
83
83
  * Generates a DidComm identity.
84
84
  * @param {RawKeyPair} [keys] Optional keys to use for identity generation.
@@ -86,3 +86,4 @@ export declare class DidCommAdapter implements CommunicationService {
86
86
  */
87
87
  generateIdentity(keys?: RawSchnorrKeyPair): ServiceAdapterConfig;
88
88
  }
89
+ //# sourceMappingURL=did-comm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"did-comm.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/beacon/aggregation/communication/adapter/did-comm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAuB,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAsC,MAAM,oBAAoB,CAAC;AAE3F,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAEnH;;;;;;GAMG;AACH,qBAAa,oBAAqB,YAAW,oBAAoB;IACxD,IAAI,EAAE,iBAAiB,CAAC;IACxB,UAAU,EAAE;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACK,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,EAAE,MAAM,EAAE,CAAC;IAEjC;;;;;OAKG;gBACS,MAAM,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC;CAenD;AAED;;;;;;GAMG;AACH,qBAAa,cAAe,YAAW,oBAAoB;IACzD;;;OAGG;IACI,IAAI,EAAE,MAAM,CAAa;IAEhC;;;OAGG;IACI,MAAM,EAAE,oBAAoB,CAAC;IAEpC;;;OAGG;IACH,OAAO,CAAC,QAAQ,CAA0C;IAE1D;;;OAGG;gBACS,MAAM,GAAE,oBAAiD;IAIrE;;;OAGG;IACI,KAAK,IAAI,IAAI;IAIpB;;;OAGG;IACI,OAAO,CAAC,IAAI,EAAE,sBAAsB,CAAC,iBAAiB,CAAC,GAAG,IAAI;IAIrE;;;;OAIG;IACI,sBAAsB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI;IAIjF;;;;;;;OAOG;IACU,WAAW,CACtB,QAAQ,EAAE,KAAK,CAAC,0BAA0B,CAAC,EAC3C,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;IAIpC;;;;OAIG;IACI,gBAAgB,CAAC,IAAI,CAAC,EAAE,iBAAiB,GAAG,oBAAoB;CA0BxE"}
1
+ {"version":3,"file":"did-comm.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/beacon/aggregation/communication/adapter/did-comm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAsC,MAAM,oBAAoB,CAAC;AAE3F,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAEnH;;;;;;GAMG;AACH,qBAAa,oBAAqB,YAAW,oBAAoB;IACxD,IAAI,EAAE,iBAAiB,CAAC;IACxB,UAAU,EAAE;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACK,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,EAAE,MAAM,EAAE,CAAC;IAEjC;;;;;OAKG;gBACS,MAAM,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC;CAUnD;AAED;;;;;;GAMG;AACH,qBAAa,cAAe,YAAW,oBAAoB;IACzD;;;OAGG;IACI,IAAI,EAAE,MAAM,CAAa;IAEhC;;;OAGG;IACI,MAAM,EAAE,oBAAoB,CAAC;IAEpC;;;OAGG;IACH,OAAO,CAAC,QAAQ,CAA0C;IAE1D;;;OAGG;gBACS,MAAM,GAAE,oBAAiD;IAIrE;;;OAGG;IACI,KAAK,IAAI,IAAI;IAIpB;;;OAGG;IACI,OAAO,CAAC,IAAI,EAAE,sBAAsB,CAAC,iBAAiB,CAAC,GAAG,IAAI;IAIrE;;;;OAIG;IACI,sBAAsB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI;IAIjF;;;;;;;OAOG;IACU,WAAW,CACtB,QAAQ,EAAE,0BAA0B,GAAG,WAAW,EAClD,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;IAIpC;;;;OAIG;IACI,gBAAgB,CAAC,IAAI,CAAC,EAAE,iBAAiB,GAAG,oBAAoB;CAwBxE"}
@@ -1,7 +1,8 @@
1
- import { Did, Maybe } from '@did-btcr2/common';
1
+ import { Did } from '@did-btcr2/common';
2
2
  import { RawSchnorrKeyPair } from '@did-btcr2/keypair';
3
3
  import { SimplePool } from 'nostr-tools/pool';
4
4
  import { AggregateBeaconMessageType } from '../../cohort/messages/index.js';
5
+ import { BaseMessage } from '../../cohort/messages/base.js';
5
6
  import { CommunicationService, MessageHandler, ServiceAdapter, ServiceAdapterConfig, ServiceAdapterIdentity } from '../service.js';
6
7
  /**
7
8
  * TODO: Determine set of default Nostr relays to use.
@@ -85,12 +86,12 @@ export declare class NostrAdapter implements CommunicationService {
85
86
  * TODO: Clean up and complete this method.
86
87
  * Sends a message to a recipient using the Nostr protocol.
87
88
  * This method is a placeholder and should be implemented with actual Nostr message sending logic.
88
- * @param {Maybe<AggregateBeaconMessageType>} message The message to send, typically containing the content and metadata.
89
+ * @param {AggregateBeaconMessageType} message The message to send, typically containing the content and metadata.
89
90
  * @param {Did} from The identifier of the sender.
90
91
  * @param {Did} [to] The identifier of the recipient.
91
92
  * @returns {Promise<void>} A promise that resolves when the message is sent.
92
93
  */
93
- sendMessage(message: Maybe<AggregateBeaconMessageType>, from: Did, to?: Did): Promise<void | Promise<string>[]>;
94
+ sendMessage(message: AggregateBeaconMessageType | BaseMessage, from: Did, to?: Did): Promise<void | Promise<string>[]>;
94
95
  /**
95
96
  * TODO: Determine if this method is needed.
96
97
  * Generates a Nostr identity using the Secp256k1SecretKey and Identifier classes.
@@ -99,3 +100,4 @@ export declare class NostrAdapter implements CommunicationService {
99
100
  */
100
101
  generateIdentity(keys?: RawSchnorrKeyPair): ServiceAdapterConfig;
101
102
  }
103
+ //# sourceMappingURL=nostr.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nostr.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/beacon/aggregation/communication/adapter/nostr.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAgC,iBAAiB,EAAsC,MAAM,oBAAoB,CAAC;AAGzH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAa9C,OAAO,EAA0B,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAEpG,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,cAAc,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAEnI;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,UAKhC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,iBAAiB,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,EAAE;QACV,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;;;;;GAMG;AACH,qBAAa,YAAa,YAAW,oBAAoB;;IACvD;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAW;IAEvB;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AAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,iBAAiB,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,EAAE;QACV,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;;;;;GAMG;AACH,qBAAa,YAAa,YAAW,oBAAoB;;IACvD;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAW;IAEvB;;;OAGG;IACH,MAAM,EAAE,kBAAkB,CAAC;IAQ3B;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB;;;;;OAKG;gBACS,MAAM,GAAE,kBAAoG;IAUxH;;;OAGG;IACI,OAAO,CAAC,IAAI,EAAE,sBAAsB,CAAC,iBAAiB,CAAC,GAAG,IAAI;IAKrE;;;;OAIG;IACI,KAAK,IAAI,cAAc,CAAC,YAAY,CAAC;IAkB5C;;;;OAIG;YACW,OAAO;IAuCrB;;;;OAIG;IACI,sBAAsB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI;IAKjF;;;;;;;;OAQG;IACU,WAAW,CAAC,OAAO,EAAE,0BAA0B,GAAG,WAAW,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;IA2FnI;;;;;OAKG;IACI,gBAAgB,CAAC,IAAI,CAAC,EAAE,iBAAiB,GAAG,oBAAoB;CAwBxE"}
@@ -5,3 +5,4 @@ export declare class CommunicationServiceError extends MethodError {
5
5
  export declare class CommunicationAdapterError extends MethodError {
6
6
  constructor(message: string, type?: string, data?: Record<string, any>);
7
7
  }
8
+ //# sourceMappingURL=error.d.ts.map
@@ -7,3 +7,4 @@ import { CommunicationService, Service } from './service.js';
7
7
  export declare class CommunicationFactory {
8
8
  static establish(service: Service): CommunicationService;
9
9
  }
10
+ //# sourceMappingURL=factory.d.ts.map
@@ -1,5 +1,5 @@
1
- import { Maybe } from '@did-btcr2/common';
2
1
  import { AggregateBeaconMessageType } from '../cohort/messages/index.js';
2
+ import { BaseMessage } from '../cohort/messages/base.js';
3
3
  import { RawSchnorrKeyPair } from '@did-btcr2/keypair';
4
4
  /**
5
5
  * ServiceAdapterConfig defines the configuration structure for the Nostr communication service.
@@ -30,6 +30,7 @@ export interface CommunicationService {
30
30
  start(): void;
31
31
  setKeys(keys: ServiceAdapterIdentity<RawSchnorrKeyPair>): void;
32
32
  registerMessageHandler(messageType: string, handler: MessageHandler): void;
33
- sendMessage(message: Maybe<AggregateBeaconMessageType>, sender: string, recipient?: string): Promise<void | Promise<string>[]>;
33
+ sendMessage(message: AggregateBeaconMessageType | BaseMessage, sender: string, recipient?: string): Promise<void | Promise<string>[]>;
34
34
  generateIdentity(keys?: RawSchnorrKeyPair): ServiceAdapterConfigType<ServiceAdapterConfig>;
35
35
  }
36
+ //# sourceMappingURL=service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../../src/core/beacon/aggregation/communication/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;;;;;GAMG;AACH,MAAM,WAAW,oBAAqB,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAC/D,IAAI,EAAE,sBAAsB,CAAC,GAAG,CAAC,CAAC;IAClC,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,GAAG,EAAE,GAA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AAc,GAAG,IAAI,CAAC;IAC3E,WAAW,CACT,OAAO,EAAE,0BAA0B,GAAG,WAAW,EACjD,MAAM,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACrC,gBAAgB,CAAC,IAAI,CAAC,EAAE,iBAAiB,GAAG,wBAAwB,CAAC,oBAAoB,CAAC,CAAC;CAC5F"}
@@ -113,3 +113,4 @@ export declare class BeaconCoordinator {
113
113
  */
114
114
  static initialize(service: Service): BeaconCoordinator;
115
115
  }
116
+ //# sourceMappingURL=coordinator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"coordinator.d.ts","sourceRoot":"","sources":["../../../../../src/core/beacon/aggregation/coordinator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAkB1D,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACnG,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAGhE;;;;;;;GAOG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,sBAAsB,CAAC,iBAAiB,CAAC,CAAA;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAA;AACD;;;;GAIG;AACH,qBAAa,iBAAiB;;IAC5B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,QAAQ,EAAE,oBAAoB,CAAC;IAE/B;;;OAGG;IACH,OAAO,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAM;IAE3C;;;OAGG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;;;;;OAKG;IACG,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,0BAA0B,CAAC;IAsBhF;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,iBAAiB;CAUvD"}
@@ -189,3 +189,4 @@ export declare class BeaconParticipant {
189
189
  static initialize(ent: Seed | Mnemonic, protocol: CommunicationService, did: string, name?: string): BeaconParticipant;
190
190
  }
191
191
  export {};
192
+ //# sourceMappingURL=participant.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"participant.d.ts","sourceRoot":"","sources":["../../../../../src/core/beacon/aggregation/participant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAU,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAKrC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAQ1D,OAAO,EAA6B,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAC3G,OAAO,EAA4B,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAIxG,OAAO,EAAsC,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAC9H,OAAO,EAA2C,iCAAiC,EAAE,MAAM,iDAAiD,CAAC;AAM7I,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAEhE,KAAK,IAAI,GAAG,QAAQ,CAAC;AACrB,KAAK,QAAQ,GAAG,MAAM,CAAC;AAEvB,KAAK,SAAS,GAAG,MAAM,CAAC;AACxB,KAAK,qBAAqB,GAAG,GAAG,CAAC,SAAS,EAAE,0BAA0B,CAAC,CAAC;AAExE,KAAK,QAAQ,GAAG,MAAM,CAAC;AACvB,KAAK,QAAQ,GAAG,MAAM,CAAC;AACvB,KAAK,cAAc,GAAG,GAAG,CAAC,QAAQ,EAAE,QAAQ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E,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAoBrF;;;;;OAKG;IACI,yBAAyB,CAAC,MAAM,EAAE,qBAAqB,EAAE,OAAO,EAAE,0BAA0B,GAAG,UAAU;IAmBhH;;;;;OAKG;IACU,qBAAqB,CAChC,MAAM,EAAE,qBAAqB,EAC7B,iBAAiB,EAAE,UAAU,EAC7B,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,IAAI,CAAC;IAYhB;;;;;OAKG;IACU,oBAAoB,CAAC,OAAO,EAAE,0BAA0B,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAY7G;;;;;;;OAOG;WACW,UAAU,CAAC,GAAG,EAAE,IAAI,GAAG,QAAQ,EAAE,QAAQ,EAAE,oBAAoB,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,iBAAiB;CAG9H"}
@@ -140,7 +140,7 @@ export declare class BeaconCohortSigningSession implements SigningSession {
140
140
  * Converts the signing session instance to a JSON object representation.
141
141
  * @returns {BeaconCohortSigningSession} The JSON object representation of the signing session.
142
142
  */
143
- json(): BeaconCohortSigningSession;
143
+ toJSON(): Partial<BeaconCohortSigningSession>;
144
144
  /**
145
145
  * Checks if the signing session is a completed state.
146
146
  * @returns {boolean} True if the session is complete, false otherwise.
@@ -153,3 +153,4 @@ export declare class BeaconCohortSigningSession implements SigningSession {
153
153
  isFailed(): boolean;
154
154
  }
155
155
  export {};
156
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/core/beacon/aggregation/session/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE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ETE = "SIGNATURE_COMPLETE",
9
9
  FAILED = "FAILED"
10
10
  }
11
+ //# sourceMappingURL=status.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { KeyBytes } from '@did-btcr2/common';
2
- import { BitcoinNetworkConnection } from '../../../../bitcoin/dist/types/bitcoin.js';
2
+ import { BitcoinConnection } from '@did-btcr2/bitcoin';
3
3
  import { SignedBTCR2Update } from '../../../../cryptosuite/dist/types/data-integrity-proof/interface.js';
4
4
  import { SidecarData } from '../types.js';
5
5
  import { BeaconService, BeaconSignal, BlockMetadata } from './interfaces.js';
@@ -37,8 +37,9 @@ export declare abstract class Beacon {
37
37
  * Used during the update path.
38
38
  * @param {SignedBTCR2Update} signedUpdate The signed BTCR2 update to broadcast.
39
39
  * @param {KeyBytes} secretKey The secret key for signing the Bitcoin transaction.
40
- * @param {BitcoinNetworkConnection} bitcoin The Bitcoin network connection.
40
+ * @param {BitcoinConnection} bitcoin The Bitcoin network connection.
41
41
  * @returns {Promise<SignedBTCR2Update>} The signed update that was broadcast.
42
42
  */
43
- abstract broadcastSignal(signedUpdate: SignedBTCR2Update, secretKey: KeyBytes, bitcoin: BitcoinNetworkConnection): Promise<SignedBTCR2Update>;
43
+ abstract broadcastSignal(signedUpdate: SignedBTCR2Update, secretKey: KeyBytes, bitcoin: BitcoinConnection): Promise<SignedBTCR2Update>;
44
44
  }
45
+ //# sourceMappingURL=beacon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"beacon.d.ts","sourceRoot":"","sources":["../../../../src/core/beacon/beacon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,sEAAsE,CAAC;AACzG,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE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B,YAAY,EAAE,iBAAiB,EAC/B,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,iBAAiB,CAAC;CAC9B"}
@@ -1,4 +1,4 @@
1
- import { BitcoinNetworkConnection } from '@did-btcr2/bitcoin';
1
+ import { BitcoinConnection } from '@did-btcr2/bitcoin';
2
2
  import { KeyBytes } from '@did-btcr2/common';
3
3
  import { SignedBTCR2Update } from '@did-btcr2/cryptosuite';
4
4
  import { SidecarData } from '../types.js';
@@ -28,9 +28,10 @@ export declare class CASBeacon extends Beacon {
28
28
  * Broadcast CAS Beacon signal to the Bitcoin network.
29
29
  * @param {SignedBTCR2Update} signedUpdate The signed BTCR2 update to broadcast.
30
30
  * @param {KeyBytes} secretKey The secret key for signing the Bitcoin transaction.
31
- * @param {BitcoinNetworkConnection} bitcoin The Bitcoin network connection.
31
+ * @param {BitcoinConnection} bitcoin The Bitcoin network connection.
32
32
  * @return {Promise<SignedBTCR2Update>} The signed update that was broadcasted.
33
33
  * @throws {CASBeaconError} if broadcasting fails.
34
34
  */
35
- broadcastSignal(signedUpdate: SignedBTCR2Update, secretKey: KeyBytes, bitcoin: BitcoinNetworkConnection): Promise<SignedBTCR2Update>;
35
+ broadcastSignal(signedUpdate: SignedBTCR2Update, secretKey: KeyBytes, bitcoin: BitcoinConnection): Promise<SignedBTCR2Update>;
36
36
  }
37
+ //# sourceMappingURL=cas-beacon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cas-beacon.d.ts","sourceRoot":"","sources":["../../../../src/core/beacon/cas-beacon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,MAAM,EA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EAAE,iBAAiB,EAC/B,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,iBAAiB,CAAC;CAG9B"}
@@ -20,3 +20,4 @@ export declare class CASBeaconError extends MethodError {
20
20
  export declare class SMTBeaconError extends MethodError {
21
21
  constructor(message: string, type?: string, data?: Record<string, any>);
22
22
  }
23
+ //# sourceMappingURL=error.d.ts.map
@@ -13,3 +13,4 @@ export declare class BeaconFactory {
13
13
  */
14
14
  static establish(service: BeaconService): Beacon;
15
15
  }
16
+ //# sourceMappingURL=factory.d.ts.map
@@ -57,3 +57,4 @@ export interface BeaconSignal {
57
57
  */
58
58
  blockMetadata: BlockMetadata;
59
59
  }
60
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -1,4 +1,4 @@
1
- import { BitcoinNetworkConnection } from '@did-btcr2/bitcoin';
1
+ import { BitcoinConnection } from '@did-btcr2/bitcoin';
2
2
  import { BeaconService, BeaconSignal } from './interfaces.js';
3
3
  /**
4
4
  * Static utility class for discovering Beacon Signals on the Bitcoin blockchain.
@@ -11,15 +11,16 @@ export declare class BeaconSignalDiscovery {
11
11
  * Retrieves the beacon signals for the given array of BeaconService objects
12
12
  * using an esplora/electrs REST API connection via a bitcoin I/O driver.
13
13
  * @param {Array<BeaconService>} beaconServices Array of BeaconService objects to retrieve signals for
14
- * @param {BitcoinNetworkConnection} bitcoin Bitcoin network connection to use for REST calls
14
+ * @param {BitcoinConnection} bitcoin Bitcoin network connection to use for REST calls
15
15
  * @returns {Promise<Map<BeaconService, Array<BeaconSignal>>>} Map of beacon service to its discovered signals
16
16
  */
17
- static indexer(beaconServices: Array<BeaconService>, bitcoin: BitcoinNetworkConnection): Promise<Map<BeaconService, Array<BeaconSignal>>>;
17
+ static indexer(beaconServices: Array<BeaconService>, bitcoin: BitcoinConnection): Promise<Map<BeaconService, Array<BeaconSignal>>>;
18
18
  /**
19
19
  * Traverse the full blockchain from genesis to chain top looking for beacon signals.
20
20
  * @param {Array<BeaconService>} beaconServices Array of BeaconService objects to search for signals.
21
- * @param {BitcoinNetworkConnection} bitcoin Bitcoin network connection to use for RPC calls.
21
+ * @param {BitcoinConnection} bitcoin Bitcoin network connection to use for RPC calls.
22
22
  * @returns {Promise<Map<BeaconService, Array<BeaconSignal>>>} Map of beacon service to its discovered signals.
23
23
  */
24
- static fullnode(beaconServices: Array<BeaconService>, bitcoin: BitcoinNetworkConnection): Promise<Map<BeaconService, Array<BeaconSignal>>>;
24
+ static fullnode(beaconServices: Array<BeaconService>, bitcoin: BitcoinConnection): Promise<Map<BeaconService, Array<BeaconSignal>>>;
25
25
  }
26
+ //# sourceMappingURL=signal-discovery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"signal-discovery.d.ts","sourceRoot":"","sources":["../../../../src/core/beacon/signal-discovery.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EAKzB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG9D;;;;;GAKG;AACH,qBAAa,qBAAqB;IAEhC;;;;;;OAMG;WACU,OAAO,CAClB,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC,EACpC,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;IA0EnD;;;;;OAKG;WACU,QAAQ,CACnB,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC,EACpC,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;CA4HpD"}
1
+ {"version":3,"file":"signal-discovery.d.ts","sourceRoot":"","sources":["../../../../src/core/beacon/signal-discovery.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAKlB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG9D;;;;;GAKG;AACH,qBAAa,qBAAqB;IAEhC;;;;;;OAMG;WACU,OAAO,CAClB,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC,EACpC,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;IA0EnD;;;;;OAKG;WACU,QAAQ,CACnB,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC,EACpC,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;CA4HpD"}
@@ -1,4 +1,4 @@
1
- import { BitcoinNetworkConnection } from '@did-btcr2/bitcoin';
1
+ import { BitcoinConnection } from '@did-btcr2/bitcoin';
2
2
  import { KeyBytes } from '@did-btcr2/common';
3
3
  import { SignedBTCR2Update } from '@did-btcr2/cryptosuite';
4
4
  import { SidecarData } from '../types.js';
@@ -14,7 +14,6 @@ export declare class SingletonBeacon extends Beacon {
14
14
  /**
15
15
  * Creates an instance of SingletonBeacon.
16
16
  * @param {BeaconService} service The BeaconService object representing the funded beacon to announce the update to.
17
- *
18
17
  */
19
18
  constructor(service: BeaconService);
20
19
  /**
@@ -27,9 +26,10 @@ export declare class SingletonBeacon extends Beacon {
27
26
  * Broadcasts a SingletonBeacon signal to the Bitcoin network.
28
27
  * @param {SignedBTCR2Update} signedUpdate The signed BTCR2 update to broadcast.
29
28
  * @param {KeyBytes} secretKey The secret key for signing the Bitcoin transaction.
30
- * @param {BitcoinNetworkConnection} bitcoin The Bitcoin network connection.
29
+ * @param {BitcoinConnection} bitcoin The Bitcoin network connection.
31
30
  * @returns {Promise<SignedBTCR2Update>} The signed update that was broadcast.
32
31
  * @throws {SingletonBeaconError} if the bitcoin address is invalid or unfunded.
33
32
  */
34
- broadcastSignal(signedUpdate: SignedBTCR2Update, secretKey: KeyBytes, bitcoin: BitcoinNetworkConnection): Promise<SignedBTCR2Update>;
33
+ broadcastSignal(signedUpdate: SignedBTCR2Update, secretKey: KeyBytes, bitcoin: BitcoinConnection): Promise<SignedBTCR2Update>;
35
34
  }
35
+ //# sourceMappingURL=singleton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"singleton.d.ts","sourceRoot":"","sources":["../../../../src/core/beacon/singleton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAA0C,QAAQ,EAAuB,MAAM,mBAAmB,CAAC;AAC1G,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAK3D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE7E;;;;;GAKG;AACH,qBAAa,eAAgB,SAAQ,MAAM;IAEzC;;;;OAIG;gBACS,OAAO,EAAE,aAAa;IAIlC;;;;OAIG;IACG,cAAc,CAClB,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,EAC5B,OAAO,EAAE,WAAW,GACnB,OAAO,CAAC,KAAK,CAAC,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC,CAAC;IA0CrD;;;;;;;OAOG;IACG,eAAe,CACnB,YAAY,EAAE,iBAAiB,EAC/B,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,iBAAiB,CAAC;CAqE9B"}
1
+ {"version":3,"file":"singleton.d.ts","sourceRoot":"","sources":["../../../../src/core/beacon/singleton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAA2D,QAAQ,EAAuB,MAAM,mBAAmB,CAAC;AAC3H,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAI3D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE7E;;;;;GAKG;AACH,qBAAa,eAAgB,SAAQ,MAAM;IAEzC;;;OAGG;gBACS,OAAO,EAAE,aAAa;IAIlC;;;;OAIG;IACG,cAAc,CAClB,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,EAC5B,OAAO,EAAE,WAAW,GACnB,OAAO,CAAC,KAAK,CAAC,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC,CAAC;IA2CrD;;;;;;;OAOG;IACG,eAAe,CACnB,YAAY,EAAE,iBAAiB,EAC/B,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,iBAAiB,CAAC;CAsE9B"}
@@ -1,4 +1,4 @@
1
- import { BitcoinNetworkConnection } from '@did-btcr2/bitcoin';
1
+ import { BitcoinConnection } from '@did-btcr2/bitcoin';
2
2
  import { KeyBytes } from '@did-btcr2/common';
3
3
  import { SignedBTCR2Update } from '@did-btcr2/cryptosuite';
4
4
  import { SidecarData } from '../types.js';
@@ -28,9 +28,10 @@ export declare class SMTBeacon extends Beacon {
28
28
  * Broadcast CAS Beacon signal to the Bitcoin network.
29
29
  * @param {SignedBTCR2Update} signedUpdate The signed BTCR2 update to broadcast.
30
30
  * @param {KeyBytes} secretKey The secret key for signing the Bitcoin transaction.
31
- * @param {BitcoinNetworkConnection} bitcoin The Bitcoin network connection.
31
+ * @param {BitcoinConnection} bitcoin The Bitcoin network connection.
32
32
  * @return {Promise<SignedBTCR2Update>} The signed update that was broadcasted.
33
33
  * @throws {SMTBeaconError} if broadcasting fails.
34
34
  */
35
- broadcastSignal(signedUpdate: SignedBTCR2Update, secretKey: KeyBytes, bitcoin: BitcoinNetworkConnection): Promise<SignedBTCR2Update>;
35
+ broadcastSignal(signedUpdate: SignedBTCR2Update, secretKey: KeyBytes, bitcoin: BitcoinConnection): Promise<SignedBTCR2Update>;
36
36
  }
37
+ //# sourceMappingURL=smt-beacon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"smt-beacon.d.ts","sourceRoot":"","sources":["../../../../src/core/beacon/smt-beacon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE7E;;;;;GAKG;AACH,qBAAa,SAAU,SAAQ,MAAM;IACnC;;;OAGG;gBACS,OAAO,EAAE,aAAa;IAIlC;;;;;;OAMG;IACH,cAAc,CACZ,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,EAC5B,OAAO,EAAE,WAAW,GACnB,OAAO,CAAC,KAAK,CAAC,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC,CAAC;IAIrD;;;;;;;OAOG;IACG,eAAe,CACnB,YAAY,EAAE,iBAAiB,EAC/B,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,iBAAiB,CAAC;CAG9B"}
1
+ {"version":3,"file":"smt-beacon.d.ts","sourceRoot":"","sources":["../../../../src/core/beacon/smt-beacon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE7E;;;;;GAKG;AACH,qBAAa,SAAU,SAAQ,MAAM;IACnC;;;OAGG;gBACS,OAAO,EAAE,aAAa;IAIlC;;;;;;OAMG;IACH,cAAc,CACZ,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,EAC5B,OAAO,EAAE,WAAW,GACnB,OAAO,CAAC,KAAK,CAAC,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC,CAAC;IAIrD;;;;;;;OAOG;IACG,eAAe,CACnB,YAAY,EAAE,iBAAiB,EAC/B,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,iBAAiB,CAAC;CAG9B"}
@@ -75,3 +75,4 @@ export declare class BeaconUtils {
75
75
  */
76
76
  static getBeaconServiceIds(didDocument: DidDocument): string[];
77
77
  }
78
+ //# sourceMappingURL=utils.d.ts.map
@@ -1,16 +1,23 @@
1
- import { Bytes } from '@did-btcr2/common';
2
- import { SchnorrKeyPair } from '@did-btcr2/keypair';
1
+ import { Bytes, DocumentBytes, KeyBytes, SchnorrKeyPairObject } from '@did-btcr2/common';
2
+ import { DidCreateOptions } from '../did-btcr2.js';
3
3
  /**
4
4
  * Components of a did:btcr2 identifier.
5
5
  * @interface DidComponents
6
+ * @extends {IdentifierComponents}
6
7
  * @property {string} hrp The human-readable part of the Bech32m encoding.
8
+ */
9
+ export interface DidComponents extends IdentifierComponents {
10
+ hrp: string;
11
+ }
12
+ /**
13
+ * Components of a did:btcr2 identifier.
14
+ * @interface IdentifierComponents
7
15
  * @property {string} idType Identifier type (key or external).
8
16
  * @property {number} version Identifier version.
9
- * @property {string | number} network Bitcoin network name or number.
17
+ * @property {string} network Bitcoin network name or number.
10
18
  * @property {Bytes} genesisBytes Public key or an intermediate document bytes.
11
19
  */
12
- export interface DidComponents {
13
- hrp: string;
20
+ export interface IdentifierComponents {
14
21
  idType: string;
15
22
  version: number;
16
23
  network: string;
@@ -38,19 +45,11 @@ export declare class Identifier {
38
45
  * - a key-value representing a secp256k1 public key; or
39
46
  * - a hash-value representing the hash of an initiating external DID document.
40
47
  *
41
- * @param {DidComponents} params See {@link DidComponents} for details.
42
- * @param {IdentifierTypes} params.idType Identifier type (key or external).
43
- * @param {string} params.network Bitcoin network name.
44
- * @param {number} params.version Identifier version.
45
- * @param {KeyBytes | DocumentBytes} params.genesisBytes Public key or an intermediate document bytes.
48
+ * @param {KeyBytes | DocumentBytes} genesisBytes The genesis bytes (public key or document bytes).
49
+ * @param {DidCreateOptions} options The DID creation options.
46
50
  * @returns {string} The new did:btcr2 identifier.
47
51
  */
48
- static encode({ idType, version, network, genesisBytes }: {
49
- idType: string;
50
- version: number;
51
- network: string;
52
- genesisBytes: Bytes;
53
- }): string;
52
+ static encode(genesisBytes: KeyBytes | DocumentBytes, options: DidCreateOptions): string;
54
53
  /**
55
54
  * Implements {@link https://dcdpr.github.io/did-btcr2/#didbtcr2-identifier-decoding | 3.3 did:btcr2 Identifier Decoding}.
56
55
  * @param {string} identifier The BTCR2 DID to be parsed
@@ -65,11 +64,8 @@ export declare class Identifier {
65
64
  * @returns {string} The new did:btcr2 identifier.
66
65
  */
67
66
  static generate(): {
68
- keys: SchnorrKeyPair;
69
- identifier: {
70
- controller: string;
71
- id: string;
72
- };
67
+ keyPair: SchnorrKeyPairObject;
68
+ did: string;
73
69
  };
74
70
  /**
75
71
  * Validates a did:btcr2 identifier.
@@ -78,3 +74,4 @@ export declare class Identifier {
78
74
  */
79
75
  static isValid(identifier: string): boolean;
80
76
  }
77
+ //# sourceMappingURL=identifier.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"identifier.d.ts","sourceRoot":"","sources":["../../../src/core/identifier.ts"],"names":[],"mappings":"AAAA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E,MAAM,CAAC;CACf;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,oBAAoB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,KAAK,CAAC;CACvB;AACD;;;;;;;;;;GAUG;AACH,qBAAa,UAAU;IACrB;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,QAAQ,GAAG,aAAa,EAAE,OAAO,EAAE,gBAAgB,GAAG,MAAM;IAuFxF;;;;;;;OAOG;IACH,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,aAAa;IA8HhD;;;OAGG;IACH,MAAM,CAAC,QAAQ,IAAI;QAAE,OAAO,EAAE,oBAAoB,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE;IAYjE;;;;OAIG;IACH,MAAM,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;CAQ5C"}
@@ -1,4 +1,4 @@
1
- import { BitcoinNetworkConnection } from '@did-btcr2/bitcoin';
1
+ import { BitcoinConnection } from '@did-btcr2/bitcoin';
2
2
  import { DidResolutionOptions } from '@web5/dids';
3
3
  import { Sidecar } from './types.js';
4
4
  export interface RootCapability {
@@ -39,7 +39,7 @@ export interface ResolutionOptions extends ResolutionOptionsCore {
39
39
  * Drivers for interacting with external systems, such as the Bitcoin network.
40
40
  */
41
41
  drivers?: {
42
- bitcoin?: BitcoinNetworkConnection;
42
+ bitcoin?: BitcoinConnection;
43
43
  };
44
44
  }
45
45
  /**
@@ -85,3 +85,4 @@ export interface SMTProof {
85
85
  */
86
86
  hashes: string[];
87
87
  }
88
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAo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