Signature
Static Method Summary
Static Public Methods | ||
public static |
fromBuffer(buf: *): * |
|
public static |
fromHex(hex: *): * |
|
public static |
sign(string: *, private_key: *): * |
|
public static |
signBuffer(buf: Buffer, private_key: PrivateKey): Signature |
|
public static |
signBufferSha256(buf: Buffer, private_key: PrivateKey): Signature Sign a buffer of exactally 32 bytes in size (sha256(text)) |
|
public static |
signHex(hex: *, private_key: *): * |
Constructor Summary
Public Constructor | ||
public |
|
Method Summary
Public Methods | ||
public |
recoverPublicKey(sha256_buffer: *): PublicKey |
|
public |
recoverPublicKeyFromBuffer(buffer: *): * |
|
public |
toBuffer(): * |
|
public |
toByteBuffer(): * |
|
public |
toHex(): * |
|
public |
verifyBuffer(un-hashed: Buffer): boolean |
|
public |
verifyHash(hash: *, public_key: *): * |
|
public |
verifyHex(hex: *, public_key: *): * |
Static Public Methods
public static sign(string: *, private_key: *): * source
Params:
Name | Type | Attribute | Description |
string | * | ||
private_key | * |
Return:
* |
public static signBuffer(buf: Buffer, private_key: PrivateKey): Signature source
Params:
Name | Type | Attribute | Description |
buf | Buffer | ||
private_key | PrivateKey |
public static signBufferSha256(buf: Buffer, private_key: PrivateKey): Signature source
Sign a buffer of exactally 32 bytes in size (sha256(text))
Params:
Name | Type | Attribute | Description |
buf | Buffer | 32 bytes binary |
|
private_key | PrivateKey |
public static signHex(hex: *, private_key: *): * source
Params:
Name | Type | Attribute | Description |
hex | * | ||
private_key | * |
Return:
* |
Public Constructors
public constructor() source
Public Methods
public recoverPublicKey(sha256_buffer: *): PublicKey source
Params:
Name | Type | Attribute | Description |
sha256_buffer | * |
public recoverPublicKeyFromBuffer(buffer: *): * source
Params:
Name | Type | Attribute | Description |
buffer | * |
Return:
* |
public verifyBuffer(un-hashed: Buffer): boolean source
Params:
Name | Type | Attribute | Description |
un-hashed | Buffer |
public verifyHash(hash: *, public_key: *): * source
Params:
Name | Type | Attribute | Description |
hash | * | ||
public_key | * |
Return:
* |
public verifyHex(hex: *, public_key: *): * source
Params:
Name | Type | Attribute | Description |
hex | * | ||
public_key | * |
Return:
* |