Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
BBc-1 ハンズオン : インストールとファイル内容証明 / BBc-1 Hands-on ...
Search
beyond-blockchain.org
June 06, 2018
Technology
2
1.3k
BBc-1 ハンズオン : インストールとファイル内容証明 / BBc-1 Hands-on : Installation and File-content Proof
BBc-1 Core のインストールと file_proof.py サンプルアプリケーションを用いたチュートリアルのスライドです。
beyond-blockchain.org
June 06, 2018
Tweet
Share
More Decks by beyond-blockchain.org
See All by beyond-blockchain.org
BBc-2 ハンズオン さまざまな証明書の登録とその検証 / BBc-2 Hands-on Registration and Verification of Certificates
beyondblockchain
0
98
BBc-2 ハンズオン 基本インストール / BBc-2 hands-on Basic Installation
beyondblockchain
0
56
BBc-1 ハンズオン : RFID タグによる物流追跡 / BBc-1 Hands-on : Using RFID Tags for Logistics Tracking
beyondblockchain
0
65
BBc-1 ハンズオン : さまざまな証明書の登録とその検証(ウェブ版) / BBc-1 Hands on: Registry for Certificates and Verification (on Web)
beyondblockchain
0
170
BBc-1 ハンズオン : さまざまな証明書の登録とその検証 / BBc-1 Hands on: Registry for Certificates and Verification
beyondblockchain
1
230
BBc-1 ハンズオン : デジタル通貨の送金とスワップを通して学ぶBBc-1 トランザクション / BBc-1 Hands on: Digital Currency Transfer and Swap
beyondblockchain
2
390
BBc-1 ハンズオン : Ethereum によるレッジャーサブシステム / BBc-1 Hands-on : Ledger Subsystem with Ethereum
beyondblockchain
1
660
BBc トラスト / BBc Trust
beyondblockchain
1
150
BBc-1 設計文書 / BBc-1 (Beyond Blockchain One) Design Paper
beyondblockchain
0
140
Other Decks in Technology
See All in Technology
Amazon Kendra GenAI Index 登場でどう変わる? 評価から学ぶ最適なRAG構成
naoki_0531
0
120
プロダクト開発を加速させるためのQA文化の築き方 / How to build QA culture to accelerate product development
mii3king
1
270
LINEスキマニにおけるフロントエンド開発
lycorptech_jp
PRO
0
330
PHPからGoへのマイグレーション for DMMアフィリエイト
yabakokobayashi
1
170
バクラクのドキュメント解析技術と実データにおける課題 / layerx-ccc-winter-2024
shimacos
2
1.1k
20241220_S3 tablesの使い方を検証してみた
handy
4
630
PHP ユーザのための OpenTelemetry 入門 / phpcon2024-opentelemetry
shin1x1
1
360
WACATE2024冬セッション資料(ユーザビリティ)
scarletplover
0
210
開発生産性向上! 育成を「改善」と捉えるエンジニア育成戦略
shoota
2
400
[Ruby] Develop a Morse Code Learning Gem & Beep from Strings
oguressive
1
170
re:Invent 2024 Innovation Talks(NET201)で語られた大切なこと
shotashiratori
0
320
Turing × atmaCup #18 - 1st Place Solution
hakubishin3
0
490
Featured
See All Featured
Facilitating Awesome Meetings
lara
50
6.1k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
45
2.2k
What's in a price? How to price your products and services
michaelherold
243
12k
How To Stay Up To Date on Web Technology
chriscoyier
789
250k
Designing for humans not robots
tammielis
250
25k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
170
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
Designing Experiences People Love
moore
138
23k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
2k
Scaling GitHub
holman
458
140k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
Transcript
BBc-1
[email protected]
https://speakerdeck.com/beyondblockchain BBc-1 — — 2021-05-12 – p.1/27
BBc-1 BBc-1 — — 2021-05-12 – p.2/27
BBc-1 BBc-1 ( ) / (1) (2) (3) BBc-1 —
— 2021-05-12 – p.3/27
#JUDPJO ##D$PSF ϨοδϟʔαϒγεςϜ ΞϓϦέʔγϣϯ ͦ ͷ ଞ ͞ · ͟
· ͳ Ξ ϓ Ϧ ͷ Մ ೳ ੑ ڞ௨ϥΠϒϥϦ ##D ։ൃ߲ Ҭ ௨ ՟ Ξ ϓ Ϧ ϙ Π ϯ τ Ξ ϓ Ϧ དྷ ྺ ূ ໌ Ξ ϓ Ϧ ʜ ॳظʹ͓͍ͯଘࡏূ໌Λґଘ ΞϯΧϦϯά ֤ϊʔυʹ͓͚Δهʹ ֤छσʔλϕʔεΛར༻Մೳ TRMJUF.Z42-ͦͷଞ%# BBc-1 σδλϧ௨՟ϥΠϒϥϦ ͦͷଞͷϥΠϒϥϦ CCDMJC 1ZUIPO (P +4 FUD Bitcoin Ethereum ( ) (Proof of Context) ( ) BBc-1 — — 2021-05-12 – p.4/27
: https://github.com/beyond-blockchain/bbc1/blob/develop/docs/BBc1_core_tutorial_installation_ja.md Python BBc-1 — — 2021-05-12 – p.5/27
Python 3.5.0 (3.6.0 < 3.9.0 (12/2 )) macOS + Homebrew
$ brew install libtool automake pkg-config libffi autoconf openssl Linux (Ubuntu 16.04 LTS ) $ sudo apt install -y git tzdata openssh-server libffi-dev net-tools autoconf automake libtool libssl-dev pkg-config make Windows 10 Linux (Ubuntu 16.04 LTS ) BBc-1 — — 2021-05-12 – p.6/27
Python3 (3.8 ) macOS $ brew install
[email protected]
python3 python
3.9 (12/2 ) 3.9 3.8 3.9 $ brew uninstall --ignore-dependencies
[email protected]
$ brew install
[email protected]
/usr/local/opt/
[email protected]
/bin/python3 Linux $ sudo apt update $ sudo apt install python3.8 python3.8-dev python3.8-venv python3.8-tk 16.10 python3(.8) apt (PPA ) python3 python3-dev python3-venv python3-tk BBc-1 — — 2021-05-12 – p.7/27
Python (venv) macOS (Linux python3 ) ‘python3.8’ ‘python3’ $ python3.8
-m venv bbc1env $ source bbc1env/bin/activate (bbc1env) $ pip install -U pip (bbc1env) $ pip install wheel ( ) (bbc1env) $ deactivate BBc-1 — — 2021-05-12 – p.8/27
pip $ pip install bbc1 ( ) $ bbc_core.py --no_nodekey
--no_nodekey “libbbcsig.so” $ pip --no-cache-dir install bbc1 <CTRL>+C BBc-1 — — 2021-05-12 – p.9/27
(develop pip ) pip install $ git clone https://github.com/beyond-blockchain/bbc1.git $
cd bbc1 $ python setup.py sdist $ pip install dist/bbc1-1.5.1.tar.gz dist tar pip install BBc-1 — — 2021-05-12 – p.10/27
BBc-1 Core : https://github.com/beyond-blockchain/bbc1/blob/develop/docs/BBc1_core_tutorial_file_proof_ja.md BBc-1 — — 2021-05-12 – p.11/27
file proof ( ) ( ) ( ) BBc-1 —
— 2021-05-12 – p.12/27
bbc_core.py venv file_proof $ source bbc1env/bin/activate BBc-1 — — 2021-05-12
– p.13/27
--help $ file_proof.py --help file_proof.py $ file_proof.py keypair $ file_proof.py
setup BBc-1 — — 2021-05-12 – p.14/27
$ cat > test.txt BBC HEAVEN. <CTRL>+D $ more test.txt
BBC HEAVEN. file_proof.py BBc-1 Core $ file_proof.py store test.txt BBc-1 Core BBc-1 — — 2021-05-12 – p.15/27
(1) ——- Dump of the transaction data —— * transaction_id:
b’c287be2115f49e5e486eaade7f3ddf4a82e580daf002fb910fddb0c3c199f718’ version: 2 timestamp: 1574670310305 id_length of transaction_id: 32 Event[]: 0 Reference[]: 0 Relation[]: 1 [0] asset_group_id: b’45b2a200ccdcdcc3fb80cc9d423e1069f3ca726157f6492b4a70a48e4a1713ab’ Asset: asset_id: b’3a59d1ff24076d2a4ed1208e9e5132f8a3d353e9275a9c3344b2eebdaeff11dc’ user_id: b’e59c553504ca7a54f888eb47e61b773a221ae1311bd58ec4c0912d71c443d715’ nonce: b’b42ae494c5f7366a55fc3e6c9e0e9bdfa14b1d73fac791d8d6a77346e3b2cb0a’ file_size: 12 file_digest: b’7a30a5ef92e4f84287225e980c48ad3a7c29ea929a710d6b798a9bdcc41afc97’ body_size: 21 BBc-1 — — 2021-05-12 – p.16/27
(2) body: b’Owner is user_default’ Witness: [0] user_id: b’e59c553504ca7a54f888eb47e61b773a221ae1311bd58ec4c0912d71c443d715’ sig_index:
0 Cross_Ref: None Signature[]: 1 [0] key_type: 2 signature: b’ ec2ee257f72d14dcd52c3ec049eadcac772d8ba325c2c1b1ebdaaacfcdf39d409cfd00c5 a7f88a405bd494aeafab73353766240cab5d5034cc704baaf9d8b0d7’ pubkey: b’ 042d000583b4eb3036a1abdad0c3ebf35bf4f0e892558c81a2b46173e81c3bcafde03ead be8f6acbde71bc18b69d9f46fa2fe87377e715047a1e84bfe39f53551e’ BBc-1 — — 2021-05-12 – p.17/27
BBc-1 Core $ rm test.txt $ file_proof.py get test.txt BBc-1
— — 2021-05-12 – p.18/27
BBc-1 Core $ file_proof.py verify test.txt 1 test.txt is valid
1 test.txt is invalid BBc-1 — — 2021-05-12 – p.19/27
BBc-1 Core $ file_proof.py update test.txt BBc-1 Core verify $
file_proof.py verify test.txt BBc-1 — — 2021-05-12 – p.20/27
(1) ——- Dump of the transaction data —— * transaction_id:
b’d0920e166d2a5dadd86cc9a36b011936f85538d5a7530717a1ab5ab45dfbfbe2’ version: 2 timestamp: 1574670526467 id_length of transaction_id: 32 Event[]: 0 Reference[]: 0 Relation[]: 1 [0] asset_group_id: b’45b2a200ccdcdcc3fb80cc9d423e1069f3ca726157f6492b4a70a48e4a1713ab’ Pointers[]: 1 [0] transaction_id: b’c287be2115f49e5e486eaade7f3ddf4a82e580daf002fb910fddb0c3c199f718’ asset_id: None Asset: asset_id: b’b0d56f30de78e3ec7af1e82b66ebd02d140453b63e3c78318084da65999ae03d’ user_id: b’e59c553504ca7a54f888eb47e61b773a221ae1311bd58ec4c0912d71c443d715’ BBc-1 — — 2021-05-12 – p.21/27
(2) nonce: b’c73ddeaabb4345b48a62f8c34944a0f0f585a71b38b912bec9e7b25000d11aee’ file_size: 14 file_digest: b’d866539f224896613df91023f0a9e226085451d6adf1dc5282cbba129d553713’ body_size: 21 body:
b’Owner is user_default’ Witness: [0] user_id: b’e59c553504ca7a54f888eb47e61b773a221ae1311bd58ec4c0912d71c443d715’ sig_index: 0 Cross_Ref: None Signature[]: 1 [0] key_type: 2 signature: b’ 1b53a2fad2cfc87f248046f022df787012af881fa52fdca8f7e9118516b0f0ef9f30ac5d 3bb81056743271a0f3cd009dcee89e14ef506c7c1e33897abd5f2425’ pubkey: b’ 042d000583b4eb3036a1abdad0c3ebf35bf4f0e892558c81a2b46173e81c3bcafde03ead be8f6acbde71bc18b69d9f46fa2fe87377e715047a1e84bfe39f53551e’ BBc-1 — — 2021-05-12 – p.22/27
/ ( ) $ file_proof.py keypair $ file_proof.py setup $
file_proof.py wait -o someone ID $ file_proof.py send test.txt “someone” file_proof.py get BBc-1 — — 2021-05-12 – p.23/27
(1) verify ——- Dump of the transaction data —— *
transaction_id: b’7d301959287127b866cad415f2402d9db0e43b9e7afd23d37c4f53d44486b944’ version: 2 timestamp: 1574672140298 id_length of transaction_id: 32 Event[]: 0 Reference[]: 0 Relation[]: 1 [0] asset_group_id: b’45b2a200ccdcdcc3fb80cc9d423e1069f3ca726157f6492b4a70a48e4a1713ab’ Pointers[]: 1 [0] transaction_id: b’d0920e166d2a5dadd86cc9a36b011936f85538d5a7530717a1ab5ab45dfbfbe2’ asset_id: None Asset: asset_id: b’f28e9c7d7e4cf172e9f5134f972f659d6bdbb83e8a95d6d52f4d8bf77f1783d9’ user_id: b’2a59d59e3809f827ce709d3815e3950eef4a6a93af5557a93a7fdfba71460843’ BBc-1 — — 2021-05-12 – p.24/27
(2) nonce: b’0fc536c7e1040ff3ec85391f471c0d1cd8e6357960775702d0e3995bbfccde96’ file_size: 14 file_digest: b’d866539f224896613df91023f0a9e226085451d6adf1dc5282cbba129d553713’ body_size: 52 body:
b’Ownership is transfered from user_default to someone’ Witness: [0] user_id: b’e59c553504ca7a54f888eb47e61b773a221ae1311bd58ec4c0912d71c443d715’ sig_index: 0 [1] user_id: b’2a59d59e3809f827ce709d3815e3950eef4a6a93af5557a93a7fdfba71460843’ sig_index: 1 Cross_Ref: None BBc-1 — — 2021-05-12 – p.25/27
(3) Signature[]: 2 [0] key_type: 2 signature: b’ 1b05ba95ed4b445caaf941155b53fa82365f5ce608d79912064c8d63ca602952d84b27 5ec7f4c144620b6a6eca32808df70df707a45c35e58848e5e179bffe0d’
pubkey: b’ 042d000583b4eb3036a1abdad0c3ebf35bf4f0e892558c81a2b46173e81c3bcafde03e adbe8f6acbde71bc18b69d9f46fa2fe87377e715047a1e84bfe39f53551e’ [1] key_type: 2 signature: b’ e77e8887d9fe6ee95ece9943c3767f6f7e45dfa3e38487bc0946a0baa44935a11a7453 5e3988804858ea3fab9d857a3d2bb65367e9134e1ba52525a38b4491a5’ pubkey: b’ 042c350a9569a70b79807fe6d8d3ab75fdf0fa0065e0207462e1a1ef79ed5240e96763 fcf71e3d2ab1e3b3130c13c08681019b191df399b296950a9b4f8061152e’ BBc-1 — — 2021-05-12 – p.26/27
file_proof BBc-1 Core BBc-1 — — 2021-05-12 – p.27/27