@nextera.one/axis-server-sdk 0.3.0 → 0.4.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.mjs CHANGED
@@ -225,6 +225,7 @@ var TLV_PROOF_TYPE = 5;
225
225
  var TLV_PROOF_REF = 6;
226
226
  var TLV_NONCE = 7;
227
227
  var TLV_AUD = 8;
228
+ var TLV_REALM = TLV_AUD;
228
229
  var TLV_NODE = 9;
229
230
  var TLV_TRACE_ID = 10;
230
231
  var TLV_KID = 11;
@@ -382,6 +383,9 @@ function decodeArray(bytes2, itemType, maxItems = 256) {
382
383
  return items;
383
384
  }
384
385
 
386
+ // src/core/signature.ts
387
+ import * as crypto from "crypto";
388
+
385
389
  // src/core/axis-bin.ts
386
390
  import * as z from "zod";
387
391
  var AxisFrameZ = z.object({
@@ -479,7 +483,6 @@ function getSignTarget(frame) {
479
483
  }
480
484
 
481
485
  // src/core/signature.ts
482
- import * as crypto from "crypto";
483
486
  function computeSignaturePayload(frame) {
484
487
  const frameWithoutSig = {
485
488
  ...frame,
@@ -1902,6 +1905,7 @@ export {
1902
1905
  TLV_PREV_HASH,
1903
1906
  TLV_PROOF_REF,
1904
1907
  TLV_PROOF_TYPE,
1908
+ TLV_REALM,
1905
1909
  TLV_RECEIPT_HASH,
1906
1910
  TLV_RID,
1907
1911
  TLV_TRACE_ID,