@armada/sdk / index / decodeShareableViewingKey
Function: decodeShareableViewingKey()
decodeShareableViewingKey(
shareableViewingKey):ShareableViewingKeyMaterial
Defined in: src/wallet/shareable-viewing-key.ts:34
Decode a shareable viewing key (Railgun wire format) back to its viewing key + spending public key. Validates all imported material (SPEC §4.2): the payload shape, strict hex, a non-zero 32-byte viewing key, and a spending public key that is on-curve, in the prime-order subgroup, and non-identity. A malformed or crafted key throws InvalidKeyMaterialError rather than silently yielding a wrong wallet.
Parameters
shareableViewingKey
string