pushPubkey method
Implementation
pushPubkey(PublicKey pubkey) {
if (pubkey.algorithm == KeyType.ecdsa) {
pushVarBytes(pubkey.raw);
} else if (pubkey.algorithm == KeyType.eddsa ||
pubkey.algorithm == KeyType.sm2) {
ScriptBuilder b = ScriptBuilder();
b.pushNum(pubkey.algorithm.value);
b.pushNum(pubkey.parameters.curve.value);
b.pushRawBytes(pubkey.raw);
pushVarBytes(b.buf.bytes);
}
}