@interncom/diplomatic 0.15.1 → 0.17.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.
@@ -1,6 +1,6 @@
1
1
  import type { BundleHost } from "../codecs/bundleHost.ts";
2
2
  import { Status } from "../consts.ts";
3
- import { MASTER_SEED_LEN, type SealedMasterKey } from "../seed.ts";
3
+ import { MASTER_SEED_LEN, type MasterSeed, type SealedMasterKey } from "../seed.ts";
4
4
  import type { ICrypto, PublicKey } from "../types.ts";
5
5
  import { type ValStat } from "../valstat.ts";
6
6
  import { type DHKEReq, type DHKEResp, PairRequest } from "./pairing.ts";
@@ -62,6 +62,8 @@ export type Identity = {
62
62
  declare const SEAL_BIND_DOMAIN: Uint8Array<ArrayBufferLike>;
63
63
  declare const SEAL_KEY_LEN = 32;
64
64
  declare const SEAL_PRF_MIN_LEN = 16;
65
+ /** Brand `bytes` as {@link MasterSeed} only if length is {@link MASTER_SEED_LEN}. */
66
+ export declare function asMasterSeed(bytes: Uint8Array): ValStat<MasterSeed>;
65
67
  export declare class Enclave {
66
68
  #private;
67
69
  private constructor();
@@ -18,8 +18,6 @@ export type MasterSeed = Uint8Array & {
18
18
  export type SealedMasterKey = Uint8Array & {
19
19
  readonly [sealedMasterKeySymbol]: true;
20
20
  };
21
- /** Brand `bytes` as {@link MasterSeed} only if length is {@link MASTER_SEED_LEN}. */
22
- export declare function asMasterSeed(bytes: Uint8Array): ValStat<MasterSeed>;
23
21
  /** Brand `bytes` as {@link SealedMasterKey} only if length is {@link SEALED_MASTER_KEY_LEN}. */
24
22
  export declare function asSealedMasterKey(bytes: Uint8Array): ValStat<SealedMasterKey>;
25
23
  export {};
@@ -7,7 +7,7 @@ import { APICallName, Status } from "./consts.ts";
7
7
  import type { ValStat } from "./valstat.ts";
8
8
  /** Identity seed brands — defined in seed.ts; re-exported for convenience. */
9
9
  export type { MasterSeed, SealedMasterKey } from "./seed.ts";
10
- export { asMasterSeed, asSealedMasterKey, MASTER_SEED_LEN, SEALED_MASTER_KEY_LEN, } from "./seed.ts";
10
+ export { asSealedMasterKey, MASTER_SEED_LEN, SEALED_MASTER_KEY_LEN, } from "./seed.ts";
11
11
  export type GroupID = string;
12
12
  declare const entityIDSymbol: unique symbol;
13
13
  export type EntityID = Uint8Array & {