@dfinity/vetkeys - v0.2.0
    Preparing search index...

    IBE (Identity Based Encryption)

    Index

    Methods

    • Decrypt an IBE ciphertext, returning the message

      Parameters

      Returns Uint8Array

    • Serialize the IBE ciphertext to a bytestring

      Returns Uint8Array

    • Encrypt a message using IBE, returning the ciphertext

      The seed parameter must be a randomly generated value of exactly 32 bytes, that was generated just for this one message. Using it for a second message, or for any other purposes, compromises the security of the IBE scheme.

      Any user who is able to retrieve the VetKey for the specified derived public key and identity will be able to decrypt this message.

      Parameters

      Returns IbeCiphertext