Skip to content

Commit

Permalink
Document get_public_key_compressed from Util
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrtj committed Oct 11, 2023
1 parent 4e78e01 commit 4a73d9b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/Bitcoin/Crypto/Util.pm
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,12 @@ Bitcoin::Crypto::Util - Utilities for working with Bitcoin
validate_wif
validate_segwit
get_key_type
get_public_key_compressed
generate_mnemonic
mnemonic_from_entropy
mnemonic_to_seed
get_path_info
to_format
hash160
hash256
);
Expand Down Expand Up @@ -321,6 +323,16 @@ uncompressed / hybrid public key or private key entropy up to curve size bits).
Returns boolean which states whether the key is private. Returns
undef if C<$bytestr> does not look like a valid key entropy.
=head2 get_public_key_compressed
$is_compressed = get_public_key_compressed($bytestr);
Checks if the C<$bytestr> looks like a valid ASN X9.62 format (compressed /
uncompressed / hybrid public key).
Returns boolean which states whether the key is compressed. Returns
undef if C<$bytestr> does not look like a valid public key.
=head2 generate_mnemonic
$mnemonic = generate_mnemonic($len = 128, $lang = 'en')
Expand Down

0 comments on commit 4a73d9b

Please sign in to comment.