encodeKey method

  1. @override
String encodeKey(
  1. List<int> pubKey
)
override

Encodes a Filecoin address for a public key using the secp256k1 address type.

Implementation

@override
String encodeKey(List<int> pubKey) {
  final pubkey = AddrKeyValidator.validateAndGetSecp256k1Key(pubKey);
  final tobytes = pubkey.uncompressed;
  return _FilAddrUtils.encodeKeyBytes(tobytes, FillAddrTypes.secp256k1);
}