@aldea/sdk / Exports / Lock
Class: Lock
Output Lock
Every output has a Lock which determines who can call methods and update the instance.
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new Lock(type
, data
): Lock
Parameters
Name | Type |
---|---|
type | LockType |
data | Uint8Array |
Returns
Defined in
packages/core/dist/lock.d.ts:34
Properties
data
• data: Uint8Array
Defined in
packages/core/dist/lock.d.ts:33
type
• type: LockType
Defined in
packages/core/dist/lock.d.ts:32
Methods
toBytes
▸ toBytes(): Uint8Array
Returns
Uint8Array
Defined in
packages/core/dist/lock.d.ts:37
toHex
▸ toHex(): string
Returns
string
Defined in
packages/core/dist/lock.d.ts:38
toJson
▸ toJson(): LockInterface
Returns
Defined in
packages/core/dist/lock.d.ts:39
fromBytes
▸ fromBytes(bytes
): Lock
Parameters
Name | Type |
---|---|
bytes | Uint8Array |
Returns
Defined in
packages/core/dist/lock.d.ts:35
fromJson
▸ fromJson(json
): Lock
Parameters
Name | Type |
---|---|
json | LockInterface |
Returns
Defined in
packages/core/dist/lock.d.ts:36