@stricahq/bip32ed25519 - v2.0.0
    Preparing search index...

    Class PrivateKey

    An Ed25519 private key in extended form, 64 bytes: the scalar kL, and kR, from which the signing nonce is derived. Bip32PrivateKey.toPrivateKey() gives one, and PrivateKey.fromSecretKey makes one from a 32-byte RFC 8032 secret key, such as a cardano-cli signing key.

    Index
    • Parameters

      • privateKey: Uint8Array

        kL ‖ kR, 64 bytes, copied

      Returns PrivateKey

    • The Ed25519 signature of message, 64 bytes.

      Parameters

      • message: Uint8Array

      Returns Uint8Array

    • A copy of the key's 64 bytes.

      Returns Uint8Array

    • Whether signature is this key's signature of message, as PublicKey.verify decides.

      Parameters

      • signature: Uint8Array
      • message: Uint8Array

      Returns boolean

    • The key for a 32-byte Ed25519 secret key (RFC 8032), such as a cardano-cli payment signing key: expanded with SHA-512, so it signs as RFC 8032 Ed25519 does.

      Parameters

      • secretKey: Uint8Array

      Returns PrivateKey