isPrivateKeyCompressed
Usage
import { isPrivateKeyCompressed } from '@stacks/transactions';
isPrivateKeyCompressed(
'64879bd015b0fbc19a798040b399b59c3c756cc79eaa9d24d18e66106ad7ee4801'
); // true (66 hex chars, ends with 01)
isPrivateKeyCompressed(
'64879bd015b0fbc19a798040b399b59c3c756cc79eaa9d24d18e66106ad7ee48'
); // false (64 hex chars)Signature
function isPrivateKeyCompressed(privateKey: PrivateKey): boolean;Returns
Parameters
privateKey (required)
Last updated
Was this helpful?