@lelantos-org/sdk / primitives / viewingKeyFromSpending
Function: viewingKeyFromSpending()
ts
function viewingKeyFromSpending(sk): ViewingKey;Defined in: @lelantos-org/sdk/dist/keys/keys.d.ts:55
Narrow a spending key to the incoming-viewing capability.
Copies the fields: a SpendingKey is assignable to ViewingKey, so a cast compiles but leaves nsk on the object at runtime.
Parameters
| Parameter | Type |
|---|---|
sk | SpendingKey |