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

    Class SecretKey

    A secret key derived from the group secret.

    This is intended to be used for AVS.

    Hierarchy

    • UniffiAbstractObject
      • SecretKey

    Implements

    Index

    Constructors

    • Construct a new instance, transferring data from the client layer to Rust.

      Parameters

      • bytes: ArrayBuffer

      Returns SecretKey

    Properties

    "[destructorGuardSymbol]": UniffiRustArcPtr
    "[pointerLiteralSymbol]": bigint
    "[uniffiTypeNameSymbol]": "SecretKey"

    Methods

    • Get the raw bytes from this type, transferring data from Rust to the client layer.

      This does not consume the newtype, instead copying the internal data across the FFI boundary.

      Returns ArrayBuffer

    • Calls into the == method of SecretKeyInterface (the native Rust peer).

      Returns true if and only if the two instance of SecretKeyInterface are equivalent on the Rust side.

      Generated by deriving the Eq trait in Rust.

      Parameters

      Returns boolean

    • Calls into the hash method of SecretKeyInterface (the native Rust peer).

      Generated by deriving the Hash trait in Rust.

      Returns bigint

    • Calls into the SecretKeyInterface::to_string() method of the native Rust peer.

      Generated by deriving the Display trait in Rust.

      Returns string

    • {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}

      Returns void

    • A convenience method to use this object, then destroy it after its use.

      Type Parameters

      • T

      Parameters

      • block: (obj: this) => T

      Returns T

    • Parameters

      • obj: any

      Returns obj is SecretKey