@interncom/diplomatic 0.12.6 → 0.12.8

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.
@@ -47,6 +47,8 @@ export type Identity = {
47
47
  /** Per-bag KDM mixed with this identity's private key (see bag seal). */
48
48
  kdmFor: (msgHeadEnc: Uint8Array) => Promise<Uint8Array>;
49
49
  };
50
+ declare const SEAL_WRAP_DOMAIN: Uint8Array<ArrayBufferLike>;
51
+ declare const SEAL_PAIR_DOMAIN: Uint8Array<ArrayBufferLike>;
50
52
  declare const SEAL_KEY_LEN = 32;
51
53
  declare const SEAL_PRF_MIN_LEN = 16;
52
54
  export declare class Enclave {
@@ -153,5 +155,5 @@ export declare class Enclave {
153
155
  deriveIdentity(keyPath: string, idx?: number): Promise<Identity>;
154
156
  }
155
157
  /** Derive seal key from PRF output (domain-separated). Used by enclave seal/unseal. */
156
- export declare function sealKeyFromPrf(crypto: ICrypto, prf: Uint8Array): Promise<ValStat<Uint8Array>>;
157
- export { MASTER_SEED_LEN, SEAL_KEY_LEN, SEAL_PRF_MIN_LEN };
158
+ export declare function sealKeyFromPrf(crypto: ICrypto, prf: Uint8Array, domain?: Uint8Array): Promise<ValStat<Uint8Array>>;
159
+ export { MASTER_SEED_LEN, SEAL_KEY_LEN, SEAL_PAIR_DOMAIN, SEAL_PRF_MIN_LEN, SEAL_WRAP_DOMAIN, };
@@ -4,7 +4,6 @@ import type { DerivationSeed, Hash, ICrypto, KeyPair } from "../types.ts";
4
4
  */
5
5
  export declare class NobleCrypto implements ICrypto {
6
6
  private verifyKeys;
7
- private signKeys;
8
7
  genRandomBytes(bytes: number): Promise<Uint8Array>;
9
8
  gen256BitSecureRandomSeed(): Promise<Uint8Array>;
10
9
  encryptXSalsa20Poly1305Combined(data: Uint8Array, key: Uint8Array): Promise<Uint8Array>;