Secret key of the transport key pair

Constructors

  • Creates a transport secret key from a 32-byte seed.

    Parameters

    • seed: Uint8Array

    Returns TransportSecretKey

Methods

  • Decrypts and verifies an encrypted key

    Returns the encoding of an elliptic curve point in BLS12-381 G1 group

    This is primarily useful for IBE; for symmetric key encryption use decrypt_and_hash

    Parameters

    • encrypted_key_bytes: Uint8Array
    • derived_public_key_bytes: Uint8Array
    • derivation_id: Uint8Array

    Returns Uint8Array

  • Decrypts and verifies an encrypted key, and hashes it to a symmetric key

    The output length can be arbitrary and is specified by the caller

    The symmetric_key_associated_data field should include information about the protocol and cipher that this key will be used for.

    Parameters

    • encrypted_key_bytes: Uint8Array
    • derived_public_key_bytes: Uint8Array
    • derivation_id: Uint8Array
    • symmetric_key_bytes: number
    • symmetric_key_associated_data: Uint8Array

    Returns Uint8Array

  • Returns void

  • Returns the serialized public key associated with this secret key

    Returns Uint8Array