Skip to main content
Version: 0.2.38

sdk.core.derivepublickey

Home > @blaze-cardano/sdk > Core > derivePublicKey

Core.derivePublicKey() function

Function to derive the public key from a private key.

Signature:

declare function derivePublicKey(privateKey: Ed25519PrivateNormalKeyHex | Ed25519PrivateExtendedKeyHex): Ed25519PublicKeyHex;

Parameters

Parameter

Type

Description

privateKey

Ed25519PrivateNormalKeyHex | Ed25519PrivateExtendedKeyHex

The private key to derive the public key from.

Returns:

Ed25519PublicKeyHex

{Ed25519PublicKeyHex} The derived public key.