Skip to content

rootClaim

rootClaim(owner, input): Promise<{ chain: ClaimChain; nodeKey: Uint8Array; }>

Defined in: claims.ts:191

The root of a chain, signed by the owner’s wallet: one EIP-712 prompt. Derives the bearer’s node key from the keyspace key, so the root cannot commit to a wrong one, and hands it back to wrap for the bearer. When the bearer is a session key, set expires to the session key’s expiry.

ParameterType
ownerClaimSigner
input{ bearer: `0x${string}`; chainId: bigint; expires: number; keyspace: `0x${string}`; kk: Uint8Array; maxDepth: number; node: string; owner: `0x${string}`; piece?: PieceLabels; }
input.bearer`0x${string}`
input.chainIdbigint
input.expiresnumber
input.keyspace`0x${string}`
input.kkUint8Array
input.maxDepthnumber
input.nodestring
input.owner`0x${string}`
input.piece?PieceLabels

Promise<{ chain: ClaimChain; nodeKey: Uint8Array; }>

If signer is not the owner.