UNPKG

@bajetech/digitalbits-wallet-sdk

Version:

A library to make it easier to write wallets that interact with the DigitalBits blockchain

18 lines (15 loc) 417 B
import { EncryptedKey } from "../types"; import { getKeyMetadata } from "./getKeyMetadata"; describe("getKeyMetadata", () => { test("key metadata", () => { const encryptedKey: EncryptedKey = { id: "PURIFIER", encryptedBlob: "BLOB", encrypterName: "Test", salt: "SLFKJSDLKFJLSKDJFLKSJD", }; expect(getKeyMetadata(encryptedKey)).toEqual({ id: "PURIFIER", }); }); });