{
  "version": 3,
  "sources": ["../src/types.ts"],
  "sourcesContent": ["export type DID = `did:key:z${string}`\nexport type Msg = ArrayBuffer|string|Uint8Array\nexport type PrivateKey = CryptoKey\nexport type PublicKey = CryptoKey\nexport type SymmKey = CryptoKey\nexport type CipherText = ArrayBuffer\n\nexport interface LockKey {\n    keyFormatVersion:number;\n    iv:Uint8Array;\n    publicKey:Uint8Array;\n    privateKey:Uint8Array;\n    encPK:Uint8Array;\n    encSK:Uint8Array;\n}\n\nexport type JSONPrimitive = string | number | boolean | null | undefined;\n\nexport type JSONValue = JSONPrimitive | JSONValue[] | {\n    [key: string]: JSONValue;\n};\n\nexport type SymmAlg = 'AES-CTR'|'AES-CBC'|'AES-GCM'\n\nexport enum EccCurve {\n    P_256 = 'P-256',\n    P_384 = 'P-384',\n    P_521 = 'P-521',\n}\n\nexport enum RsaSize {\n    B1024 = 1024,\n    B2048 = 2048,\n    B4096 = 4096\n}\n\nexport enum SymmKeyLength {\n    B128 = 128,\n    B192 = 192,\n    B256 = 256,\n}\n\nexport type SymmKeyOpts = {\n    alg:SymmAlg\n    length:SymmKeyLength\n    iv:ArrayBuffer\n}\n\nexport enum HashAlg {\n    SHA_1 = 'SHA-1',\n    SHA_256 = 'SHA-256',\n    SHA_384 = 'SHA-384',\n    SHA_512 = 'SHA-512',\n}\n\nexport enum CharSize {\n    B8 = 8,\n    B16 = 16,\n}\n\nexport enum KeyUse {\n    Encrypt = 'encryption',  // encrypt/decrypt\n    Sign = 'signing',  // sign\n}\n\nexport type KeyAlgorithm = 'bls12-381'|'ed25519'|'rsa'\n\n/**\n * Using the key type as the record property name (ie. string = key type)\n *\n * The magic bytes are the `code` found in https://github.com/multiformats/multicodec/blob/master/table.csv\n * encoded as a variable integer (more info about that at https://github.com/multiformats/unsigned-varint).\n *\n * The key type is also found in that table.\n * It's the name of the codec minus the `-pub` suffix.\n *\n * Example\n * -------\n * _Ed25519 public key_\n * Key type: \"ed25519\"\n * Magic bytes: [ 0xed, 0x01 ]\n */\nexport type KeyTypes = Record<KeyAlgorithm, {\n    magicBytes:Uint8Array\n}>\n"],
  "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAwBO,IAAK,WAAL,kBAAKA,cAAL;AACH,EAAAA,UAAA,WAAQ;AACR,EAAAA,UAAA,WAAQ;AACR,EAAAA,UAAA,WAAQ;AAHA,SAAAA;AAAA,GAAA;AAML,IAAK,UAAL,kBAAKC,aAAL;AACH,EAAAA,kBAAA,WAAQ,QAAR;AACA,EAAAA,kBAAA,WAAQ,QAAR;AACA,EAAAA,kBAAA,WAAQ,QAAR;AAHQ,SAAAA;AAAA,GAAA;AAML,IAAK,gBAAL,kBAAKC,mBAAL;AACH,EAAAA,8BAAA,UAAO,OAAP;AACA,EAAAA,8BAAA,UAAO,OAAP;AACA,EAAAA,8BAAA,UAAO,OAAP;AAHQ,SAAAA;AAAA,GAAA;AAYL,IAAK,UAAL,kBAAKC,aAAL;AACH,EAAAA,SAAA,WAAQ;AACR,EAAAA,SAAA,aAAU;AACV,EAAAA,SAAA,aAAU;AACV,EAAAA,SAAA,aAAU;AAJF,SAAAA;AAAA,GAAA;AAOL,IAAK,WAAL,kBAAKC,cAAL;AACH,EAAAA,oBAAA,QAAK,KAAL;AACA,EAAAA,oBAAA,SAAM,MAAN;AAFQ,SAAAA;AAAA,GAAA;AAKL,IAAK,SAAL,kBAAKC,YAAL;AACH,EAAAA,QAAA,aAAU;AACV,EAAAA,QAAA,UAAO;AAFC,SAAAA;AAAA,GAAA;",
  "names": ["EccCurve", "RsaSize", "SymmKeyLength", "HashAlg", "CharSize", "KeyUse"]
}
