@wireapp/core-crypto
    Preparing search index...

    Interface KeypackageRefInterface

    A lightweight distinct reference to a KeyPackage sufficient to uniquely identify it

    This contains some metadata to assist in sorting and filtering refs without needing to perform the relatively heavy operation of converting to a full keypackage.

    interface KeypackageRefInterface {
        ciphersuite(): Ciphersuite;
        credentialType(): CredentialType;
        hashRef(): ArrayBuffer;
        isValid(): boolean;
        signatureScheme(): SignatureScheme;
    }

    Implemented by

    Index

    Methods

    • Get the ciphersuite associated with this key package ref.

      Returns Ciphersuite

    • Get the credential type associated with this key package ref.

      Returns CredentialType

    • Get the bytes of the hash reference to a [Keypackage]

      Returns ArrayBuffer

    • Determines whether this keypackage is valid in the sense of the former client_valid_keypackages_count method.

      In practice, this just checks whether its lifetime (if present) has expired or not.

      Returns boolean

    • Get the signature scheme associated wtih this key package ref.

      Returns SignatureScheme