bitcoin-kmp
0.11.1
common
bitcoin-kmp
/
fr.acinq.bitcoin
/
Crypto
/
checkPubKeyEncoding
check
Pub
Key
Encoding
common
@
JvmStatic
fun
checkPubKeyEncoding
(
key
:
ByteArray
,
flags
:
Int
,
sigVersion
:
Int
)
:
Boolean
Content copied to clipboard
Return
true if the pubkey is properly encoded
Parameters
key
public key
flags
script flags
sig
Version
signature version (legacy or segwit)