Skip to content
This repository has been archived by the owner on Oct 24, 2020. It is now read-only.

Commit

Permalink
Replaced multisign
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Jul 25, 2015
1 parent 0f56054 commit 80b78c6
Show file tree
Hide file tree
Showing 30 changed files with 155 additions and 234 deletions.
2 changes: 1 addition & 1 deletion lib/BlockCypher/Api/TXSkeleton.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private function generateSignatures($privateKeyList, $coinSymbol)

foreach ($this->getTxInputs() as $txInput) {

// Addresses can be network addresses or pubkeys (multisign txs)
// Addresses can be network addresses or pubkeys (multisig txs)
$txInputAddresses = $txInput->getAddresses();

foreach ($txInputAddresses as $inputAddress) {
Expand Down
7 changes: 4 additions & 3 deletions release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ v1.2.1
* Added samples for docs
* Refactored some samples
* Added TXClient::getConfidence and getMultipleConfidences
* Replaced Multisign by Multisig

v1.2.0
------
Expand Down Expand Up @@ -35,7 +36,7 @@ v1.0.1
* Fixed bug in TXInputBuilder and sample
* Added TXRef ref_balance property
* Fixed argv bug in signer console command
* Fixed bug in multisign tx signature
* Fixed bug in multisig tx signature

v1.0.0
------
Expand All @@ -51,12 +52,12 @@ v1.0.0
* Get wallet balance as address balance
* Get full wallet as full address
* Allow create, sign and send transactions
* Added docs site samples for Blockchain API and Address API (without wallets and multisign endpoint)
* Added docs site samples for Blockchain API and Address API (without wallets and multisig endpoint)
* Added Payment API
* Added Microtransaction API
* Added Decode Raw Transaction Endpoint
* Added Push Raw Transaction Endpoint
* Multisign txs (fund and spend)
* Multisig txs (fund and spend)
* Improved usability for MicroTX
* Extracted methods from MicroTX to MicroTXClient

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

// # Create Multisig Address
// This sample code demonstrate how you can create a multisign address address.
// This sample code demonstrate how you can create a multisig address address.

require __DIR__ . '/../bootstrap.php';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// # Create Multisig Testnet3 Address Sample
// This sample code demonstrate how you can create
// a multisign address address.
// a multisig address address.

require __DIR__ . '/../bootstrap.php';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

// # Generate Multisig Address
// This sample code demonstrate how you can generate a multisign address address.
// This sample code demonstrate how you can generate a multisig address address.

require __DIR__ . '/../bootstrap.php';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// # Generate Multisig Testnet3 Address Sample
// This sample code demonstrate how you can create
// a multisign address address.
// a multisig address address.

require __DIR__ . '/../bootstrap.php';

Expand Down
34 changes: 0 additions & 34 deletions sample/address-api/GenerateMultisignAddressEndpoint.php

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html><html lang="en"><head><title>address-api\CreateMultisignAddress</title></head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"><meta name="groc-relative-root" content="../"><meta name="groc-document-path" content="address-api\CreateMultisignAddress"><meta name="groc-project-path" content="address-api\CreateMultisignAddress.php"><link rel="stylesheet" type="text/css" media="all" href="../assets/style.css"><script type="text/javascript" src="../assets/behavior.js"></script><body><div id="meta"><div class="file-path">address-api\CreateMultisignAddress.php</div></div><div id="document"><div class="segment"><div class="code"><div class="wrapper"><span class="hljs-preprocessor">&lt;?php</span></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h1 id="create-multisig-address">Create Multisig Address</h1>
<p>This sample code demonstrate how you can create a multisign address address.</p></div></div><div class="code"><div class="wrapper"><span class="hljs-keyword">require</span> <span class="hljs-keyword">__DIR__</span> . <span class="hljs-string">'/../bootstrap.php'</span>;
<!DOCTYPE html><html lang="en"><head><title>address-api\CreateMultisigAddress</title></head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"><meta name="groc-relative-root" content="../"><meta name="groc-document-path" content="address-api\CreateMultisigAddress"><meta name="groc-project-path" content="address-api\CreateMultisigAddress.php"><link rel="stylesheet" type="text/css" media="all" href="../assets/style.css"><script type="text/javascript" src="../assets/behavior.js"></script><body><div id="meta"><div class="file-path">address-api\CreateMultisigAddress.php</div></div><div id="document"><div class="segment"><div class="code"><div class="wrapper"><span class="hljs-preprocessor">&lt;?php</span></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h1 id="create-multisig-address">Create Multisig Address</h1>
<p>This sample code demonstrate how you can create a multisig address address.</p></div></div><div class="code"><div class="wrapper"><span class="hljs-keyword">require</span> <span class="hljs-keyword">__DIR__</span> . <span class="hljs-string">'/../bootstrap.php'</span>;

<span class="hljs-variable">$pubkeys</span> = <span class="hljs-keyword">array</span>(
<span class="hljs-string">"02c716d071a76cbf0d29c29cacfec76e0ef8116b37389fb7a3e76d6d32cf59f4d3"</span>,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html><html lang="en"><head><title>address-api\CreateMultisignAddressBtcTest3</title></head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"><meta name="groc-relative-root" content="../"><meta name="groc-document-path" content="address-api\CreateMultisignAddressBtcTest3"><meta name="groc-project-path" content="address-api\CreateMultisignAddressBtcTest3.php"><link rel="stylesheet" type="text/css" media="all" href="../assets/style.css"><script type="text/javascript" src="../assets/behavior.js"></script><body><div id="meta"><div class="file-path">address-api\CreateMultisignAddressBtcTest3.php</div></div><div id="document"><div class="segment"><div class="code"><div class="wrapper"><span class="hljs-preprocessor">&lt;?php</span></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h1 id="create-multisig-testnet3-address-sample">Create Multisig Testnet3 Address Sample</h1>
<!DOCTYPE html><html lang="en"><head><title>address-api\CreateMultisigAddressBtcTest3</title></head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"><meta name="groc-relative-root" content="../"><meta name="groc-document-path" content="address-api\CreateMultisigAddressBtcTest3"><meta name="groc-project-path" content="address-api\CreateMultisigAddressBtcTest3.php"><link rel="stylesheet" type="text/css" media="all" href="../assets/style.css"><script type="text/javascript" src="../assets/behavior.js"></script><body><div id="meta"><div class="file-path">address-api\CreateMultisigAddressBtcTest3.php</div></div><div id="document"><div class="segment"><div class="code"><div class="wrapper"><span class="hljs-preprocessor">&lt;?php</span></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h1 id="create-multisig-testnet3-address-sample">Create Multisig Testnet3 Address Sample</h1>
<p>This sample code demonstrate how you can create
a multisign address address.</p></div></div><div class="code"><div class="wrapper"><span class="hljs-keyword">require</span> <span class="hljs-keyword">__DIR__</span> . <span class="hljs-string">'/../bootstrap.php'</span>;</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>BTC-TESTNET: 2NBbY8fbHRLjWXHqRvs8P996N82eTYic1yX</p></div></div><div class="code"><div class="wrapper"><span class="hljs-variable">$pubkeys</span> = <span class="hljs-keyword">array</span>(
a multisig address address.</p></div></div><div class="code"><div class="wrapper"><span class="hljs-keyword">require</span> <span class="hljs-keyword">__DIR__</span> . <span class="hljs-string">'/../bootstrap.php'</span>;</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>BTC-TESTNET: 2NBbY8fbHRLjWXHqRvs8P996N82eTYic1yX</p></div></div><div class="code"><div class="wrapper"><span class="hljs-variable">$pubkeys</span> = <span class="hljs-keyword">array</span>(
<span class="hljs-string">"033e88a5503dc09243e58d9e7a53831c2b77cac014415ad8c29cabab5d933894c1"</span>,
<span class="hljs-string">"02087f346641256d4ba19cc0473afaa8d3d1b903761b9220a915e1af65a12e613c"</span>,
<span class="hljs-string">"03051fa1586ff8d509125d3e25308b4c66fcf656b377bf60bfdb296a4898d42efd"</span>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html><html lang="en"><head><title>address-api\GenerateMultisignAddress</title></head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"><meta name="groc-relative-root" content="../"><meta name="groc-document-path" content="address-api\GenerateMultisignAddress"><meta name="groc-project-path" content="address-api\GenerateMultisignAddress.php"><link rel="stylesheet" type="text/css" media="all" href="../assets/style.css"><script type="text/javascript" src="../assets/behavior.js"></script><body><div id="meta"><div class="file-path">address-api\GenerateMultisignAddress.php</div></div><div id="document"><div class="segment"><div class="code"><div class="wrapper"><span class="hljs-preprocessor">&lt;?php</span></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h1 id="generate-multisig-address">Generate Multisig Address</h1>
<p>This sample code demonstrate how you can generate a multisign address address.</p></div></div><div class="code"><div class="wrapper"><span class="hljs-keyword">require</span> <span class="hljs-keyword">__DIR__</span> . <span class="hljs-string">'/../bootstrap.php'</span>;
<!DOCTYPE html><html lang="en"><head><title>address-api\GenerateMultisigAddress</title></head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"><meta name="groc-relative-root" content="../"><meta name="groc-document-path" content="address-api\GenerateMultisigAddress"><meta name="groc-project-path" content="address-api\GenerateMultisigAddress.php"><link rel="stylesheet" type="text/css" media="all" href="../assets/style.css"><script type="text/javascript" src="../assets/behavior.js"></script><body><div id="meta"><div class="file-path">address-api\GenerateMultisigAddress.php</div></div><div id="document"><div class="segment"><div class="code"><div class="wrapper"><span class="hljs-preprocessor">&lt;?php</span></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h1 id="generate-multisig-address">Generate Multisig Address</h1>
<p>This sample code demonstrate how you can generate a multisig address address.</p></div></div><div class="code"><div class="wrapper"><span class="hljs-keyword">require</span> <span class="hljs-keyword">__DIR__</span> . <span class="hljs-string">'/../bootstrap.php'</span>;

<span class="hljs-variable">$addressClient</span> = <span class="hljs-keyword">new</span> \BlockCypher\Client\AddressClient(<span class="hljs-variable">$apiContexts</span>[<span class="hljs-string">'BTC.main'</span>]);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html><html lang="en"><head><title>address-api\GenerateMultisignAddressBtcTest3</title></head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"><meta name="groc-relative-root" content="../"><meta name="groc-document-path" content="address-api\GenerateMultisignAddressBtcTest3"><meta name="groc-project-path" content="address-api\GenerateMultisignAddressBtcTest3.php"><link rel="stylesheet" type="text/css" media="all" href="../assets/style.css"><script type="text/javascript" src="../assets/behavior.js"></script><body><div id="meta"><div class="file-path">address-api\GenerateMultisignAddressBtcTest3.php</div></div><div id="document"><div class="segment"><div class="code"><div class="wrapper"><span class="hljs-preprocessor">&lt;?php</span></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h1 id="generate-multisig-testnet3-address-sample">Generate Multisig Testnet3 Address Sample</h1>
<!DOCTYPE html><html lang="en"><head><title>address-api\GenerateMultisigAddressBtcTest3</title></head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"><meta name="groc-relative-root" content="../"><meta name="groc-document-path" content="address-api\GenerateMultisigAddressBtcTest3"><meta name="groc-project-path" content="address-api\GenerateMultisigAddressBtcTest3.php"><link rel="stylesheet" type="text/css" media="all" href="../assets/style.css"><script type="text/javascript" src="../assets/behavior.js"></script><body><div id="meta"><div class="file-path">address-api\GenerateMultisigAddressBtcTest3.php</div></div><div id="document"><div class="segment"><div class="code"><div class="wrapper"><span class="hljs-preprocessor">&lt;?php</span></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h1 id="generate-multisig-testnet3-address-sample">Generate Multisig Testnet3 Address Sample</h1>
<p>This sample code demonstrate how you can create
a multisign address address.</p></div></div><div class="code"><div class="wrapper"><span class="hljs-keyword">require</span> <span class="hljs-keyword">__DIR__</span> . <span class="hljs-string">'/../bootstrap.php'</span>;
a multisig address address.</p></div></div><div class="code"><div class="wrapper"><span class="hljs-keyword">require</span> <span class="hljs-keyword">__DIR__</span> . <span class="hljs-string">'/../bootstrap.php'</span>;

<span class="hljs-variable">$addressClient</span> = <span class="hljs-keyword">new</span> \BlockCypher\Client\AddressClient(<span class="hljs-variable">$apiContexts</span>[<span class="hljs-string">'BTC.test3'</span>]);</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>BTC-TESTNET: 2NBbY8fbHRLjWXHqRvs8P996N82eTYic1yX</p></div></div><div class="code"><div class="wrapper"><span class="hljs-variable">$pubkeys</span> = <span class="hljs-keyword">array</span>(
<span class="hljs-string">"033e88a5503dc09243e58d9e7a53831c2b77cac014415ad8c29cabab5d933894c1"</span>,
Expand Down
Loading

0 comments on commit 80b78c6

Please sign in to comment.