Skip to content

getDerivedPublicKey

Derives a public key based on a predecessor address and a derivation path.

Usage

const publicKey = await solanaChainSigContract.getDerivedPublicKey({
  path: 'my_derivation_path',
  predecessor: '7yvgcBEf6TuXeD1s2XcPX7XM5faVerS4rydTE6McVAzX',
})

Parameters

ParameterTypeDescription
argsobjectArguments for deriving the public key
args.pathstringThe derivation path to use
args.predecessorstringAddress requesting the signature

Returns

TypeDescription
Promise<UncompressedPubKeySEC1>Derived public key in SEC1 uncompressed format