@coasys/ad4m / Exports / LinkRow
Interface: LinkRow
One stored link as returned under __links — the same shape as the
LinkExpression perspective.get() returns, including the signature
verdict the executor recorded when the link was stored.
proof.valid is true only when the signature verifies against author.
A link stored without a proof arrives with key and signature set to
"" and valid: false; that is an unverifiable link, not a valid unsigned
one. Anything that acts on a row (counting a vote, granting a role) should
require proof.valid.
valid is never null here and invalid is always !valid, the same
convention as perspective.get(). So invalid: true does not by itself mean
a signature failed: it also covers a link with no proof, or with no recorded
verdict. To tell an unsigned link from a failed signature, check whether
proof.signature is "".
Table of contents
Properties
Properties
author
• author: string
Defined in
core/src/model/types.ts:447 (opens in a new tab)
data
• data: Object
Type declaration
| Name | Type |
|---|---|
predicate | string |
source | string |
target | string |
Defined in
core/src/model/types.ts:449 (opens in a new tab)
proof
• proof: Object
Type declaration
| Name | Type |
|---|---|
invalid | boolean |
key | string |
signature | string |
valid | boolean |
Defined in
core/src/model/types.ts:450 (opens in a new tab)
timestamp
• timestamp: string