deriveChildPublicKey

open suspend fun deriveChildPublicKey(keyshare: ByteArray, derivationPath: String): Result<ByteArray>

Derives a child public key via BIP32 hierarchical-deterministic derivation, producing many addresses from one keyshare. Runs locally.

This is soft (public-key) derivation; for a new, independently signable child keyshare use TrioSession.hardDerivation.

Return

the derived child public-key bytes.

Parameters

keyshare

the keyshare bytes, read from your StorageClient by keyId.

derivationPath

the BIP32 path, e.g. "m/44'/60'/0'/0/0" (Ethereum) or "m/44'/0'/0'/0/0" (Bitcoin); "m" is the root key.