@coasys/ad4m / Exports / LinkExpression
Class: LinkExpression
The fields every expression carries, with DataType as its data.
Hierarchy
-
ExpressionShape<Link,ExpressionProof>↳
LinkExpression
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• Abstract new LinkExpression(author?, timestamp?, data?, proof?)
Parameters
| Name | Type |
|---|---|
author? | string |
timestamp? | string |
data? | Link |
proof? | ExpressionProof |
Inherited from
ExpressionGeneric(Link).constructor
Defined in
core/src/expression/Expression.ts:32 (opens in a new tab)
Properties
author
• author: string
Inherited from
ExpressionGeneric(Link).author
Defined in
core/src/expression/Expression.ts:26 (opens in a new tab)
data
• data: Link
Inherited from
ExpressionGeneric(Link).data
Defined in
core/src/expression/Expression.ts:28 (opens in a new tab)
proof
• proof: ExpressionProof
Inherited from
ExpressionGeneric(Link).proof
Defined in
core/src/expression/Expression.ts:29 (opens in a new tab)
status
• Optional status: LinkStatus
Defined in
core/src/links/Links.ts:56 (opens in a new tab)
timestamp
• timestamp: string
Inherited from
ExpressionGeneric(Link).timestamp
Defined in
core/src/expression/Expression.ts:27 (opens in a new tab)
Methods
hash
▸ hash(): number
Returns
number
Defined in
core/src/links/Links.ts:45 (opens in a new tab)
fromWire
▸ Static fromWire(wire): LinkExpression
Build a LinkExpression (with hash()) from the executor's wire shape.
Parameters
| Name | Type |
|---|---|
wire | DecoratedLinkExpression | LinkExpression |