This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OP_DUP | |
OP_HASH160 | |
<hash(publicKey)> | |
OP_EQUALVERIFY OP_CHECKSIG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OP_0 | |
OP_<M> | |
<pubkey1> <pubkey2> ... <pubkeyN> | |
OP_<N> | |
OP_CHECKMULTISIG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# wiki page | |
https://en.bitcoin.it/wiki/Contract | |
# Nick Szabo essays | |
http://szabo.best.vwh.net/smart_contracts_idea.html | |
http://szabo.best.vwh.net/smart.contracts.html | |
http://szabo.best.vwh.net/micropayments.html | |
# secure multiparty computation in bitcoin | |
https://eprint.iacr.org/2013/784.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo npm install -g peerflix | |
peerflix "magnet:?xt=urn:btih:ef330b39f4801d25b4245212e75a38634bfc856e" | |
TERM=xterm-256color DISPLAY= mplayer -vo caca -quiet http://10.0.0.128:8888/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OP_DEPTH 3 OP_EQUAL | |
OP_IF | |
OP_HASH160 <hash160(R)> OP_EQUALVERIFY | |
OP_0 2 <AlicePubkey1> <BobPubkey1> 2 OP_CHECKMULTISIG | |
OP_ELSE | |
OP_0 2 <AlicePubkey2> <BobPubkey2> 2 OP_CHECKMULTISIG | |
OP_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OP_IF | |
<service provided conditions> | |
<provider pubkey> | |
ELSE | |
<expiry time> OP_CHECKLOCKTIMEVERIFY OP_DROP | |
<client pubkey> | |
OP_ENDIF | |
OP_CHECKSIGVERIFY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OP_IF | |
OP_HASH256 <challenge hash> OP_EQUALVERIFY | |
<provider pubkey> | |
ELSE | |
<expiry time> OP_CHECKLOCKTIMEVERIFY OP_DROP | |
<client pubkey> | |
OP_ENDIF | |
OP_CHECKSIGVERIFY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
transaction_proposal: { | |
raw, | |
xpubs[], | |
m, | |
input_metadata: [ | |
{ | |
input_transaction, // (optional for participants with no access to the blockchain) | |
path || paths[], | |
sighash_type (defaults to SIGHASH_ALL) | |
} || null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Bitcore ECIES browser usage</title> | |
<script src="bitcore.min.js"></script> | |
<script src="bitcore-ecies.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
UserContact: User_Contact, | |
EntityContact: Entity_Contact | |
} |