live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/lock-device


@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

ParameterType
deviceSkUint8Array

Returns

{
  nostrPk: string;
  nostrSk: string;
}
NameTypeDefined in
nostrPkstringindex.ts:86
nostrSkstringindex.ts:86