I know you are used to me making typos but not this time its really called Spedn :)
The website - https://spedn.readthedocs.io/en/latest/ if you wanna try it a bit
And here is base usage.
Intsall Haskell Tool Stack.
Download Spedn sources.
$ git clone https://bitbucket.org/o-studio/spedn.git
Build and install Spedn.
$ cd spedn/spedn
$ stack install
Your first contract
Create a file mycontract.spedn with a following content:
contract ExpiringTip(Ripemd160 alice, Ripemd160 bob) {
challenge receive(Sig sig, PubKey pubKey) {
verify hash160(pubKey) == bob;
verify checkSig(sig, pubKey);
}
challenge revoke(Sig sig, PubKey pubKey) {
verify checkSequence(7d);
verify hash160(pubKey) == alice;
verify checkSig(sig, pubKey);
}
}
Compile with command:
$ spedn compile -c mycontract.spedn
You should get a compiled contract template similar to this:
2 PICK TRUE EQUAL IF 3 PICK HASH160 OVER EQUALVERIFY (...)
BCH Markets
CRYPTO INCOME GUIDE EBOOK - FREE FOR LIMITED TIME - DOWNLOAD HERE
Join My Official Discord Crypto/Steemit Group - https://discord.gg/Ma3VCxj
Follow, Resteem and VOTE UP |
|---|