Skip to content

aptosAddressToAuthKey()

SIP Protocol API Reference v0.7.0


SIP Protocol API Reference / aptosAddressToAuthKey

aptosAddressToAuthKey(address): `0x${string}`

Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:2507

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.

string

Aptos address (0x-prefixed hex string)

`0x${string}`

Authentication key as HexString

If address format is invalid

const authKey = aptosAddressToAuthKey('0x1234...abcd')
// Returns: "0x1234...abcd" (same as input, normalized)