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.

Parameter Type
owner ClaimSigner
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.chainId bigint
input.expires number
input.keyspace `0x${string}`
input.kk Uint8Array
input.maxDepth number
input.node string
input.owner `0x${string}`
input.piece? PieceLabels

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

If signer is not the owner.