@bcts/provenance-mark 1.0.0-alpha.20 → 1.0.0-alpha.22

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 CHANGED
@@ -1,5 +1,6 @@
1
1
  Copyright © 2024 Blockchain Commons, LLC
2
- Copyright © 2025-2026 Leonardo Amoroso Custodio
2
+ Copyright © 2025-2026 Parity Technologies
3
+
3
4
 
4
5
  Redistribution and use in source and binary forms, with or without modification,
5
6
  are permitted provided that the following conditions are met:
package/dist/index.cjs CHANGED
@@ -10,6 +10,11 @@ let _bcts_envelope = require("@bcts/envelope");
10
10
 
11
11
  //#region src/error.ts
12
12
  /**
13
+ * Copyright © 2023-2026 Blockchain Commons, LLC
14
+ * Copyright © 2025-2026 Parity Technologies
15
+ *
16
+ */
17
+ /**
13
18
  * Error types for Provenance Mark operations.
14
19
  */
15
20
  let ProvenanceMarkErrorType = /* @__PURE__ */ function(ProvenanceMarkErrorType) {
@@ -113,6 +118,11 @@ var ProvenanceMarkError = class ProvenanceMarkError extends Error {
113
118
  //#endregion
114
119
  //#region src/date.ts
115
120
  /**
121
+ * Copyright © 2023-2026 Blockchain Commons, LLC
122
+ * Copyright © 2025-2026 Parity Technologies
123
+ *
124
+ */
125
+ /**
116
126
  * Reference date for 4-byte and 6-byte serialization (2001-01-01T00:00:00Z).
117
127
  */
118
128
  const REFERENCE_DATE = Date.UTC(2001, 0, 1, 0, 0, 0, 0);
@@ -251,6 +261,11 @@ function dateToDateString(date) {
251
261
  //#endregion
252
262
  //#region src/resolution.ts
253
263
  /**
264
+ * Copyright © 2023-2026 Blockchain Commons, LLC
265
+ * Copyright © 2025-2026 Parity Technologies
266
+ *
267
+ */
268
+ /**
254
269
  * Resolution levels for provenance marks.
255
270
  * Higher resolution provides more security but larger mark sizes.
256
271
  */
@@ -458,6 +473,11 @@ function resolutionFromCbor(cborValue) {
458
473
 
459
474
  //#endregion
460
475
  //#region src/crypto-utils.ts
476
+ /**
477
+ * Copyright © 2023-2026 Blockchain Commons, LLC
478
+ * Copyright © 2025-2026 Parity Technologies
479
+ *
480
+ */
461
481
  const SHA256_SIZE = 32;
462
482
  /**
463
483
  * Compute SHA-256 hash of data.
@@ -498,6 +518,11 @@ function obfuscate(key, message) {
498
518
  //#endregion
499
519
  //#region src/xoshiro256starstar.ts
500
520
  /**
521
+ * Copyright © 2023-2026 Blockchain Commons, LLC
522
+ * Copyright © 2025-2026 Parity Technologies
523
+ *
524
+ */
525
+ /**
501
526
  * Xoshiro256** PRNG implementation.
502
527
  * A fast, high-quality pseudorandom number generator.
503
528
  */
@@ -620,6 +645,11 @@ var Xoshiro256StarStar = class Xoshiro256StarStar {
620
645
 
621
646
  //#endregion
622
647
  //#region src/rng-state.ts
648
+ /**
649
+ * Copyright © 2023-2026 Blockchain Commons, LLC
650
+ * Copyright © 2025-2026 Parity Technologies
651
+ *
652
+ */
623
653
  const RNG_STATE_LENGTH = 32;
624
654
  /**
625
655
  * RNG state for provenance marks (32 bytes).
@@ -671,6 +701,11 @@ var RngState = class RngState {
671
701
 
672
702
  //#endregion
673
703
  //#region src/seed.ts
704
+ /**
705
+ * Copyright © 2023-2026 Blockchain Commons, LLC
706
+ * Copyright © 2025-2026 Parity Technologies
707
+ *
708
+ */
674
709
  const PROVENANCE_SEED_LENGTH = 32;
675
710
  /**
676
711
  * A seed for generating provenance marks.
@@ -744,6 +779,10 @@ var ProvenanceSeed = class ProvenanceSeed {
744
779
  //#endregion
745
780
  //#region src/utils.ts
746
781
  /**
782
+ * Copyright © 2023-2026 Blockchain Commons, LLC
783
+ * Copyright © 2025-2026 Parity Technologies
784
+ *
785
+ *
747
786
  * Utility functions for byte array conversions.
748
787
  *
749
788
  * These functions provide cross-platform support for common byte manipulation
@@ -1062,6 +1101,11 @@ function hexDecode(hex) {
1062
1101
  //#endregion
1063
1102
  //#region src/mark.ts
1064
1103
  /**
1104
+ * Copyright © 2023-2026 Blockchain Commons, LLC
1105
+ * Copyright © 2025-2026 Parity Technologies
1106
+ *
1107
+ */
1108
+ /**
1065
1109
  * A cryptographically-secured provenance mark.
1066
1110
  */
1067
1111
  var ProvenanceMark = class ProvenanceMark {
@@ -1530,6 +1574,11 @@ function arraysEqual(a, b) {
1530
1574
  //#endregion
1531
1575
  //#region src/generator.ts
1532
1576
  /**
1577
+ * Copyright © 2023-2026 Blockchain Commons, LLC
1578
+ * Copyright © 2025-2026 Parity Technologies
1579
+ *
1580
+ */
1581
+ /**
1533
1582
  * Generator for creating provenance mark chains.
1534
1583
  */
1535
1584
  var ProvenanceMarkGenerator = class ProvenanceMarkGenerator {
@@ -1710,6 +1759,11 @@ var ProvenanceMarkGenerator = class ProvenanceMarkGenerator {
1710
1759
  //#endregion
1711
1760
  //#region src/mark-info.ts
1712
1761
  /**
1762
+ * Copyright © 2023-2026 Blockchain Commons, LLC
1763
+ * Copyright © 2025-2026 Parity Technologies
1764
+ *
1765
+ */
1766
+ /**
1713
1767
  * Wrapper for a provenance mark with additional display information.
1714
1768
  */
1715
1769
  var ProvenanceMarkInfo = class ProvenanceMarkInfo {
@@ -1800,6 +1854,10 @@ var ProvenanceMarkInfo = class ProvenanceMarkInfo {
1800
1854
  //#endregion
1801
1855
  //#region src/envelope.ts
1802
1856
  /**
1857
+ * Copyright © 2023-2026 Blockchain Commons, LLC
1858
+ * Copyright © 2025-2026 Parity Technologies
1859
+ *
1860
+ *
1803
1861
  * Envelope support for Provenance Marks
1804
1862
  *
1805
1863
  * This module provides Gordian Envelope integration for ProvenanceMark and