aptosAddressToAuthKey()
SIP Protocol API Reference v0.7.2
SIP Protocol API Reference / aptosAddressToAuthKey
Function: aptosAddressToAuthKey()
Section titled “Function: aptosAddressToAuthKey()”aptosAddressToAuthKey(
address):`0x${string}`
Defined in: @sip-protocol/sdk/dist/index-CzWPI6Le.d.ts:2570
Convert an Aptos address back to its authentication key
Note: This returns the SHA3-256 hash, not the original public key. The original public key cannot be recovered from the address alone.
Parameters
Section titled “Parameters”address
Section titled “address”string
Aptos address (0x-prefixed hex string)
Returns
Section titled “Returns”`0x${string}`
Authentication key as HexString
Throws
Section titled “Throws”If address format is invalid
Example
Section titled “Example”const authKey = aptosAddressToAuthKey('0x1234...abcd')// Returns: "0x1234...abcd" (same as input, normalized)