Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (7 sloc) 209 Bytes
contract P2PKH(bytes20 pkh) {
// Require pk to match stored pkh and signature to match
function spend(pubkey pk, sig s) {
require(hash160(pk) == pkh);
require(checkSig(s, pk));
}
}
You can’t perform that action at this time.