serialize static method

String serialize(
  1. IPublicKey pubKey,
  2. Bip32KeyData keyData, [
  3. Bip32KeyNetVersions? keyNetVer
])

Serialize a public key.

Implementation

static String serialize(IPublicKey pubKey, Bip32KeyData keyData,
    [Bip32KeyNetVersions? keyNetVer]) {
  keyNetVer ??= Bip32Const.mainNetKeyNetVersions;
  return _Bip32KeySerializer.serialize(
      pubKey.compressed, keyData, keyNetVer.public);
}