Hierarchy
KeyringPair
Properties
address
● address: function
Defined in types.ts:36
Type declaration
▸(): string
Returns: string
decodePkcs8
● decodePkcs8: function
Defined in types.ts:37
Type declaration
▸(passphrase?: undefined | string, encoded?: Uint8Array): void
Parameters:
| Name | Type |
|---|---|
Optional passphrase | undefined | string |
Optional encoded | Uint8Array |
Returns: void
encodePkcs8
● encodePkcs8: function
Defined in types.ts:38
Type declaration
▸(passphrase?: undefined | string): Uint8Array
Parameters:
| Name | Type |
|---|---|
Optional passphrase | undefined | string |
Returns: Uint8Array
getMeta
● getMeta: function
Defined in types.ts:39
Type declaration
▸(): KeyringPair$Meta
Returns: KeyringPair$Meta
isLocked
● isLocked: function
Defined in types.ts:40
Type declaration
▸(): boolean
Returns: boolean
lock
● lock: function
Defined in types.ts:41
Type declaration
▸(): void
Returns: void
publicKey
● publicKey: function
Defined in types.ts:42
Type declaration
▸(): Uint8Array
Returns: Uint8Array
setMeta
● setMeta: function
Defined in types.ts:43
Type declaration
▸(meta: KeyringPair$Meta): void
Parameters:
| Name | Type |
|---|---|
| meta | KeyringPair$Meta |
Returns: void
type
● type: KeyringPairType
Defined in types.ts:34
Methods
sign
▸ sign(message: Uint8Array): Uint8Array
Defined in types.ts:44
Parameters:
| Name | Type |
|---|---|
| message | Uint8Array |
Returns: Uint8Array
toJson
▸ toJson(passphrase?: undefined | string): KeyringPair$Json
Defined in types.ts:45
Parameters:
| Name | Type |
|---|---|
Optional passphrase | undefined | string |
Returns: KeyringPair$Json
toType
▸ toType(type: KeyringPairType): KeyringPair
Defined in types.ts:46
Parameters:
| Name | Type |
|---|---|
| type | KeyringPairType |
Returns: KeyringPair
verify
▸ verify(message: Uint8Array, signature: Uint8Array): boolean
Defined in types.ts:47
Parameters:
| Name | Type |
|---|---|
| message | Uint8Array |
| signature | Uint8Array |
Returns: boolean