Skip to content

deriveAddressAndPublicKey

The deriveAddressAndPublicKey method derives an address and public key from a predecessor ID and derivation path.

Usage

const { address, publicKey } = await evmChain.deriveAddressAndPublicKey(
  '0x8626f6940E2eb28930eFb4CeF49B2d1F2C9C1199',
  'my_derivation_path'
)

Parameters

ParameterTypeDescription
predecessorstringThe wallet/contract address requesting the signature
pathstringThe derivation path to use

Returns

The method returns a Promise that resolves to an object containing:

PropertyTypeDescription
addressstringThe derived address
publicKeystringThe corresponding public key in SEC1 uncompressed format