Skip to content
On this page

🔑 Keychain

Keychain is used to load, store and lookup encryption keys, once loaded all keys are ordered in descending order newest=>oldest 1, 2.

INFO

At the moment password protected private keys are not supported.

As it was mentioned in deploying keychain is initialised with separate instance of storage backend which is relative to keystore folder location

py
class IKeychain(Protocol):
    keys: List[PrivateKey] = []

    async def load(self, path: str, storage: IStorage):
        raise NotImplementedError

    async def find(self, key_hash: str) -> PrivateKey:
        raise NotImplementedError

Keychain is used by crypto module to encrypt/decrypt data.

Released under the MIT License.