Blockchain Commons Components TypeScript Library - v1.0.0-alpha.13
    Preparing search index...

    Interface KeyDerivation

    Interface for key derivation implementations.

    All key derivation methods must implement this interface to provide lock (encrypt) and unlock (decrypt) operations.

    interface KeyDerivation {
        index(): number;
        lock(contentKey: SymmetricKey, secret: Uint8Array): EncryptedMessage;
        unlock(
            encryptedMessage: EncryptedMessage,
            secret: Uint8Array,
        ): SymmetricKey;
        toCbor(): Cbor;
        toCborData(): Uint8Array;
        toString(): string;
    }

    Implemented by

    Index

    Methods