Skip to content

@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

NameType
typeLockType
dataUint8Array

Returns

Lock

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

LockInterface

Defined in

packages/core/dist/lock.d.ts:39


fromBytes

fromBytes(bytes): Lock

Parameters

NameType
bytesUint8Array

Returns

Lock

Defined in

packages/core/dist/lock.d.ts:35


fromJson

fromJson(json): Lock

Parameters

NameType
jsonLockInterface

Returns

Lock

Defined in

packages/core/dist/lock.d.ts:36