Interface: ProvablePure<T>
ProvablePure<T> is a special kind of Provable<T>, where the auxiliary data is empty. This means the type only consists of field elements,
in that sense it is "pure".
Examples where ProvablePure<T> is required are types of on-chain state, events and actions.
Type parameters
| Name |
|---|
T |
Hierarchy
Provable<T>↳
ProvablePure
Table of contents
Properties
Methods
Properties
check
• check: (x: T) => void
Type declaration
▸ (x): void
Parameters
| Name | Type |
|---|---|
x | T |
Returns
void
Overrides
Defined in
fromFields
• fromFields: (x: Field[]) => T
Type declaration
▸ (x): T
Parameters
| Name | Type |
|---|---|
x | Field[] |
Returns
T
Overrides
Defined in
toAuxiliary
• toAuxiliary: (x?: T) => []
Type declaration
▸ (x?): []
Parameters
| Name | Type |
|---|---|
x? | T |
Returns
[]
Overrides
Defined in
toFields
• toFields: (x: T) => Field[]
Type declaration
▸ (x): Field[]
Parameters
| Name | Type |
|---|---|
x | T |
Returns
Field[]
Overrides
Defined in
Methods
sizeInFields
▸ sizeInFields(): number
Returns
number