@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
| Name | Type |
|---|---|
key | string |
keyType | KeyType |
privateKey? | string |
Returns
Defined in
Properties
key
• key: string
Is the public key.
Defined in
keyType
• keyType: KeyType
Is the type of the key.
Defined in
privateKey
• Optional privateKey: string
Is the private key.
Defined in
Methods
toProto
▸ toProto(): LocalKey
Returns
LocalKey
Defined in
fromProto
▸ fromProto(r): LocalKey
Parameters
| Name | Type |
|---|---|
r | LocalKey |