deriveEd25519StealthPrivateKey()
SIP Protocol API Reference v0.7.4
SIP Protocol API Reference / deriveEd25519StealthPrivateKey
Function: deriveEd25519StealthPrivateKey()
Section titled “Function: deriveEd25519StealthPrivateKey()”deriveEd25519StealthPrivateKey(
stealthAddress,spendingPrivateKey,viewingPrivateKey):StealthAddressRecovery
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:4037
Derive the private key for an ed25519 stealth address
IMPORTANT: Derived Key Format
The returned privateKey is a raw scalar in little-endian format, NOT a standard
ed25519 seed. To compute the public key from the derived private key:
const scalar = bytesToBigIntLE(hexToBytes(privateKey.slice(2)))const publicKey = ed25519.ExtendedPoint.BASE.multiply(scalar)Parameters
Section titled “Parameters”stealthAddress
Section titled “stealthAddress”spendingPrivateKey
Section titled “spendingPrivateKey”`0x${string}`
viewingPrivateKey
Section titled “viewingPrivateKey”`0x${string}`