getRawPublicKey static method

dynamic getRawPublicKey(
  1. Uint8List publicKey, [
  2. IcpWalletType? walletType
])

Implementation

static getRawPublicKey(Uint8List publicKey, [IcpWalletType? walletType]) {
  final Uint8List OID =
      walletType == IcpWalletType.stoic ? ED25519_OID : SECP256K1_OID;
  final Uint8List publicKey_der = wrapDER(publicKey, OID);
  return publicKey_der.toStr();
}