Skip to main content

@bloock/sdk / LocalKey

Class: LocalKey

Represents a local key with its public and private components.

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new LocalKey(key, keyType, privateKey?): LocalKey

Constructs a LocalKey object with the specified parameters.

Parameters

NameType
keystring
keyTypeKeyType
privateKey?string

Returns

LocalKey

Defined in

entity/key/local_key.ts:27

Properties

key

key: string

Is the public key.

Defined in

entity/key/local_key.ts:11


keyType

keyType: KeyType

Is the type of the key.

Defined in

entity/key/local_key.ts:19


privateKey

Optional privateKey: string

Is the private key.

Defined in

entity/key/local_key.ts:15

Methods

toProto

toProto(): LocalKey

Returns

LocalKey

Defined in

entity/key/local_key.ts:33


fromProto

fromProto(r): LocalKey

Parameters

NameType
rLocalKey

Returns

LocalKey

Defined in

entity/key/local_key.ts:41