derEncode static method

Uint8List derEncode(
  1. BinaryBlob publicKey
)

Implementation

static Uint8List derEncode(BinaryBlob publicKey) {
  // BIP340 Schnorr scheme doesn't apply to ASN.1 standard, although other
  // form of oid existed, we just borrow secp256k1 as ref.
  // Since this protocol can not use on IC directly. We just want the function
  // works.
  return bytesWrapDer(publicKey, oidSecp256k1);
}