ChainSig.js Documentation - v1.1.6
    Preparing search index...

    Function deriveChildPublicKey

    • Derives a child public key from a parent public key using the sig.network v1.0.0 epsilon derivation scheme. The parent public keys are defined in @constants.ts

      Parameters

      • rootUncompressedPubKeySEC1: `04${string}`

        The parent public key in uncompressed SEC1 format (e.g. 04 || x || y)

      • predecessorId: string

        The predecessor ID is the address of the account calling the signer contract (e.g EOA or Contract Address)

      • path: string = ''

        Optional derivation path suffix (defaults to empty string)

      • chainId: string

        The chain ID for key derivation

      Returns `04${string}`

      The derived child public key in uncompressed SEC1 format (04 || x || y)