Bitcoin Forum
May 04, 2024, 01:37:02 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Интересная книжка  (Read 4495 times)
fsb4000 (OP)
Legendary
*
Offline Offline

Activity: 1400
Merit: 1000



View Profile
January 16, 2015, 04:10:50 PM
 #1

Первая часть: https://aois.blob.core.windows.net/public/Blockchain%20Programming%20in%20CSharp.pdf

Вторая часть доступна на сайте за 0.004 BTC  Cheesy
Сайт: http://blockchainprogramming.azurewebsites.net/
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714829822
Hero Member
*
Offline Offline

Posts: 1714829822

View Profile Personal Message (Offline)

Ignore
1714829822
Reply with quote  #2

1714829822
Report to moderator
1714829822
Hero Member
*
Offline Offline

Posts: 1714829822

View Profile Personal Message (Offline)

Ignore
1714829822
Reply with quote  #2

1714829822
Report to moderator
ish
Full Member
***
Offline Offline

Activity: 176
Merit: 106


View Profile
January 17, 2015, 07:53:18 AM
Last edit: January 17, 2015, 08:53:14 AM by ish
Merited by fruit (2)
 #2

Полезное на первых 10-ти страницах:

Quote
some lecture that you can use to complete this book
- Mastering Bitcoin of Andreas M. Antonopoulos
- The articles I wrote on CodeProject (you can find them in the Readme of the github page of NBitcoin)
- And the reference https://bitcoin.org/en/developer-guide

Once in possession of this book, you are free to share and adapt, as specified in the Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0).

Страницы 13-15 - как создать ключи при помощи библиотеки NBitcoin

Quote
using NBitcoin;

var k = new Key(); // создать закрытый ключ
var pubKey = k.PubKey; // получить открытый ключ
KeyId hash = pubKey.Hash; // сформировать часть биткоин-адреса, независимую от сети
BitcoinAddress a = hash.GetAddress(Network.Main); // var a=hash.ScriptPubKey;
Script s = a.ScriptPubKey; // скрипт с опкодами и всё такое
BitcoinSecret WIF=k.GetBitcoinSecret(Network.Main); // WIF format - key in BASE58 encoding

it is possible to get the address from the Script and Network
var s = new Script("OP_DUP OP_HASH160 ff77ae0a6f61fedd8d...");
BitcoinAddress a = s.GetDestinationAddress(Network.Main);

Страница 16 - как распечатать транзакцию

Страница 20 - как создать транзакцию

Quote
var blockr = new BlockrTransactionRepository();
Transaction fundingTransaction = blockr.Get("0B948B0...");
var payment = new Transaction();
payment.Inputs.Add(new TxIn(), {prevOut = new OutPoint(fundingTransaction.GetHash(),1) });
payment.Outputs.Add(...); // адрес получателя
payment.Outputs.Add(...); // адрес для сдачи
payment.Outputs.Add(...); // сопроводительный текст
payment.Sign(paymentSecret, false);

Страница 23 - как отправить через узел
Quote
using (var n = Node.ConnectToLocal(Network.Main))
{
    n.VersionHandshake();
    n.SendMessage(new InvPayload(InventoryType.MSG_TX), payment.Hash);
    n.SendMessage(new TxPayload(payment));
    Thread.Sleep(500);
} // close connection in Dispose();

Страницы 27-30
Хранение закрытого ключа в зашифрованном (при помощи пароля) формате,
делегирование генерирования ключа

Страницы 31-35
Создание иерархии ключей (HD wallet) (это фича эллиптической криптографии)

Страницы 36-39
StealthPubKey (DarkWallet)

Страницы 40-48
Другие типы транзакций: MultiSig, PayToScriptHash

дальше только заголовки разделов до конца документа
n00by
Member
**
Offline Offline

Activity: 172
Merit: 11


View Profile
January 20, 2015, 07:13:00 PM
 #3

книга книгой, а сама библия где?
а упс, нашел Install-Package NBitcoin
micax1
Hero Member
*****
Offline Offline

Activity: 708
Merit: 502


View Profile
February 02, 2015, 02:33:14 PM
 #4

есть у кого вторая часть?
OdinCoin
Newbie
*
Offline Offline

Activity: 22
Merit: 0


View Profile
February 04, 2015, 08:38:19 PM
 #5

Книга стоящая! Как бы перевести ее красиво.. Huh
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!