Namespace: K256
Methods
(static) compressed_from_raw(pk_raw) → {buffer}
Parameters:
Name |
Type |
Description |
pk_raw |
buffer
|
size 64 |
- Source:
Returns:
pk - size 33
-
Type
-
buffer
(static) compressed_to_raw(pk) → {bool|buffer}
Parameters:
Name |
Type |
Description |
pk |
buffer
|
size 33 |
- Source:
Returns:
-
-
Type
-
bool
-
pk_raw - size 64
-
Type
-
buffer
(static) ecdsa_sign_hashed_msg(msgHash, private_key, nonce) → {bool|buffer}
Parameters:
Name |
Type |
Description |
msgHash |
buffer
|
size 32 |
private_key |
buffer
|
size 32 |
nonce |
buffer
|
size 32 |
- Source:
Returns:
-
-
Type
-
bool
-
signature - size 64
-
Type
-
buffer
(static) ecdsa_verify_hashed_msg(m, public_key, signature) → {bool}
Parameters:
Name |
Type |
Description |
m |
buffer
|
size 32 |
public_key |
buffer
|
size 64 |
signature |
buffer
|
size 64 |
- Source:
Returns:
-
Type
-
bool
(static) is_public_key_valid(pk) → {bool}
Parameters:
Name |
Type |
Description |
pk |
buffer
|
size 64 |
- Source:
Returns:
-
Type
-
bool
(static) secp256k1_ecdsa_is_signature_normalized(signature) → {bool}
Parameters:
Name |
Type |
Description |
signature |
buffer
|
size 64 |
- Source:
Returns:
-
Type
-
bool
(static) secp256k1_ecdsa_sign_hashed_msg(msgHash, private_key, nonce) → {bool|buffer}
Parameters:
Name |
Type |
Description |
msgHash |
buffer
|
size 32 |
private_key |
buffer
|
size 32 |
nonce |
buffer
|
size 32 |
- Source:
Returns:
-
-
Type
-
bool
-
signature - size 64
-
Type
-
buffer
(static) secp256k1_ecdsa_signature_normalize(signature) → {bool}
Parameters:
Name |
Type |
Description |
signature |
buffer
|
size 64 |
- Source:
Returns:
-
Type
-
bool
(static) secp256k1_ecdsa_verify_hashed_msg(m, public_key, signature) → {bool}
Parameters:
Name |
Type |
Description |
m |
buffer
|
size 32 |
public_key |
buffer
|
size 64 |
signature |
buffer
|
size 64 |
- Source:
Returns:
-
Type
-
bool
(static) secret_to_public(private_key) → {bool|buffer}
Parameters:
Name |
Type |
Description |
private_key |
buffer
|
size 32 |
- Source:
Returns:
-
-
Type
-
bool
-
public_key - size 64
-
Type
-
buffer
(static) uncompressed_from_raw(pk_raw) → {buffer}
Parameters:
Name |
Type |
Description |
pk_raw |
buffer
|
size 64 |
- Source:
Returns:
pk - size 65
-
Type
-
buffer
(static) uncompressed_to_raw(pk) → {bool|buffer}
Parameters:
Name |
Type |
Description |
pk |
buffer
|
size 65 |
- Source:
Returns:
-
-
Type
-
bool
-
pk_raw - size 64
-
Type
-
buffer