@orangecheck/lock-device / deriveNostrKey
Function: deriveNostrKey()
function deriveNostrKey(deviceSk: Uint8Array): {
nostrPk: string;
nostrSk: string;
};
Defined in: index.ts:86
Derive an ephemeral Nostr keypair from a device secret per SPEC §3.4. Returns a 32-byte private key (hex).
Parameters
| Parameter | Type |
|---|---|
deviceSk | Uint8Array |
Returns
{
nostrPk: string;
nostrSk: string;
}
| Name | Type | Defined in |
|---|---|---|
nostrPk | string | index.ts:86 |
nostrSk | string | index.ts:86 |