Pointer to the native Ed25519 private key object in the WebAssembly (WASM) memory.
Derives the public key corresponding to this private key.
An Ed25519PublicKey instance.
The reference count retrieved by this method reflects the number of references maintained internally by libcardano-c for this native instance of the object. This is unrelated to the reference counting mechanism in JavaScript, which is managed by the JavaScript engine's garbage collector.
This method is primarily intended for diagnostic purposes.
The current reference count of the object in the WASM context.
Signs a message using the private key.
The message to sign as a byte array.
An Ed25519Signature instance representing the message signature.
StaticfromCreates an Ed25519 private key from a byte array.
This function is used to create an Ed25519 private key from an "extended" representation of the private key. The extended version includes both the secret scalar (32 bytes) and additional precomputed components (32 bytes), resulting in a total of 64 bytes.
The extended byte array (64 bytes) representing the private key. - Must be exactly 64 bytes in length to conform to the Ed25519 extended key format.
An instance of Ed25519PrivateKey.
StaticfromCreates an Ed25519 private key from a hexadecimal string.
This method is used to create an Ed25519 private key from its "extended" representation encoded as a hexadecimal string. The extended version includes both the 32-byte scalar (private key) and 32 bytes of precomputed data, encoded as a 128-character hex string.
A string representing the hexadecimal encoding of the extended Ed25519 private key. - Must be a valid hexadecimal string of exactly 128 characters (representing 64 bytes).
An instance of Ed25519PrivateKey.
StaticfromCreates an Ed25519 private key from a byte array.
This function is used to create an Ed25519 private key from a "normal" representation of the private key in byte form, as opposed to the "extended" version. The normal version of the key consists of 32 bytes representing the secret scalar directly, as defined by the Ed25519 specification.
The normal version is used in cryptographic applications where only the core private key (the scalar) is required for signing operations. It does not include additional metadata or derived values that might be present in extended representations.
The byte array representing the private key. - Must be exactly 32 bytes in length to conform to the Ed25519 normal key format.
An instance of Ed25519PrivateKey.
StaticfromCreates an Ed25519 private key from a hexadecimal string.
This method is used to create an Ed25519 private key from its "normal" representation encoded as a hexadecimal string. The normal version consists of the 32-byte scalar value that serves as the private key, encoded in a human-readable hex format.
A string representing the hexadecimal encoding of the normal Ed25519 private key. - Must be a valid hexadecimal string of exactly 64 characters (representing 32 bytes).
An instance of Ed25519PrivateKey.
Class representing an Ed25519 private key.
An Ed25519 private key is a cryptographic key used in the Ed25519 signature scheme, which is a highly efficient elliptic-curve signature system. It provides secure and fast cryptographic operations, ensuring the integrity and authenticity of data.
The Ed25519 private key is a component in public-key cryptography, where it is primarily used for signing data. The private key generates a digital signature that can be verified using the corresponding Ed25519 public key. The signature confirms the origin of the data and ensures that it has not been tampered with.