-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
encode&decode #11
Comments
https://en.bitcoin.it/wiki/Script 找個人看完,沒人要看再跟我說 |
https://en.bitcoin.it/wiki/Contract 看起來這就是說明怎麼應用? |
我覺得Contract這篇比較像在講概念說可以用腳本寫一些應用 |
聽起來就是我們要的? |
看起來是應用3較相關 |
@HuaYang-Chang 這禮拜找個時間當面聽你解釋? |
可以阿 看你哪時方便再跟我說一下 |
@HuaYang-Chang 三下午之後都可 |
好阿 我在207 下午會跟老師meeting |
/me 2 點後到 |
@iblis17 https://bitcointalk.org/index.php?topic=453086.0 目前好像是可以把data放入交易了 |
不是有個 decode transaction 的 api? |
明天找個時間用 skype 來看看好了 |
用 |
ok了 有成功 我們是用getrawtransaction |
./bitcoin-cli listunspent bitcoin-cli createrawtransaction '[{"txid":"from listunspent","vout":0}]' '{"data":"將要傳的data轉成hex","要給的address":$$}' ./bitcoin-cli signrawtransaction ./bitcoin-cli sendrawtransaction ./bitcoin-cli getrawtransaction |
(Y) 現在的資料量 可以放多少字? |
目前是80bytes |
那麼 超過 80 bytes 怎麼辦? |
在 |
想個方法存超過 80 bytes 吧? 不過那筆交易是怎麼存到 block 裡面的?給手續費? |
@iblis17 老師現在要我們想辦法可以爬data下來分析 |
有更多細節嘛?分析啥 |
@iblis17 就是可能在DATA裡面存評價訊息 然後要把資料從BLOCK CHAIN裡面撈出來 |
這不是之前就做完了? |
@iblis17 我們只是可以看到裡面的東西 |
大概的想法:
|
@iblis17 那請問一下要怎麼紀錄下那些txid? |
先看看 api 了, 記在哪裡啥的都還好,先抓到記在 memory |
@iblis17 |
@mchliu 用個 arrray 存,就是存在 memory 中,總之先拿到資料,後續再考慮存在哪裡。 |
你要用啥語言都沒關係,總之用該語言的 premitive type 就會在 memory 中了 |
@iblis17 |
@mchliu 我是在想 https://en.bitcoin.it/wiki/API_reference_(JSON-RPC) 這裡有 sample @mchliu |
|
@iblis17 可以啊我都沒寫過 |
(Y) try it out |
@iblis17 |
Here is example: https://en.bitcoin.it/wiki/API_reference_(JSON-RPC) |
@iblis17 可以請你解釋一下這東西在幹嘛嗎 |
那麼就用 Bitcoin-RPC 吧 |
@iblis17 |
哦對 |
@iblis17 |
@iblis17 |
@mchliu 我在 313 |
@iblis17 |
ok |
@iblis17 然後還要可以抓下個別演唱會的私下交易以及金額 然後還有一開始的拍賣完畢後 發出票根給所有得票者的部分 這些有哪些是我可以做的還是你通通要搞定阿 |
誰有票的資訊 不是記錄在 block chain 上?那麼就給我 blockchain 的 api call
私下交易, blockchain 有記錄嗎?
我需要 transaction 的 api |
txid會在block內 私下交易會有紀錄 傳送transaction的包含create sign send |
@iblis17 |
私下交易也必須在手機上完成? 然後這個 project 的 dead line 是何時? |
@iblis17 不太確定deadline哈 |
@iblis17 |
現在要處理的是在交易中能encode&decode所加上去的東西
@iblis17 :
誰可以跟我解釋 tx 裡的 Script 是啥?
我猜這個 function
ScriptPubKeyToJSON
是 encodeThe text was updated successfully, but these errors were encountered: