mintlayer-core icon indicating copy to clipboard operation
mintlayer-core copied to clipboard

Study the compatibility of bitcoin script (coming from bitcoin blockchain) with asymmetric key type prefix

Open TheQuantumPhysicist opened this issue 2 years ago • 0 comments
trafficstars

On one hand, we want to be able to verify bitcoin scripts off the bitcoin blockchain so that we can bridge bitcoin to our blockchain. However, our serialized key types (private keys, public keys and signatures) always have a single byte prefix indicating the type. Is this gonna be a problem when executing scripting to verify them, given that bitcoin doesn't have such prefixes? This has to be studied.

Let's also not forget that our serialization uses scale-codec, which means it's not 1:1 compatible with bitcoin serialization. That's another side-issue.

TheQuantumPhysicist avatar Dec 06 '22 11:12 TheQuantumPhysicist