validateAndHashKey method

List<int> validateAndHashKey(
  1. List<int> pubKey
)

Validates pubKey and returns its P2SH-wrapped script hash.

Implementation

List<int> validateAndHashKey(List<int> pubKey) {
  final IPublicKey pubKeyObj = AddrKeyValidator.validateAndGetSecp256k1Key(
    pubKey,
  );
  return _P2SHAddrUtils.addScriptSig(pubKeyObj);
}