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 12, 2019
Technology
1
240
BBc-1 ハンズオン : さまざまな証明書の登録とその検証 / BBc-1 Hands on: Registry for Certificates and Verification
BBc-1 の開発中の共通ライブラリと汎用レジストリライブラリ、レッジャーサブシステム、および certificates.py サンプルアプリケーションを用いたチュートリアルのスライドです。
beyond-blockchain.org
June 12, 2019
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
110
BBc-2 ハンズオン 基本インストール / BBc-2 hands-on Basic Installation
beyondblockchain
0
71
BBc-1 ハンズオン : RFID タグによる物流追跡 / BBc-1 Hands-on : Using RFID Tags for Logistics Tracking
beyondblockchain
0
71
BBc-1 ハンズオン : さまざまな証明書の登録とその検証(ウェブ版) / BBc-1 Hands on: Registry for Certificates and Verification (on Web)
beyondblockchain
0
170
BBc-1 ハンズオン : デジタル通貨の送金とスワップを通して学ぶBBc-1 トランザクション / BBc-1 Hands on: Digital Currency Transfer and Swap
beyondblockchain
2
390
BBc-1 ハンズオン : インストールとファイル内容証明 / BBc-1 Hands-on : Installation and File-content Proof
beyondblockchain
2
1.4k
BBc-1 ハンズオン : Ethereum によるレッジャーサブシステム / BBc-1 Hands-on : Ledger Subsystem with Ethereum
beyondblockchain
1
680
BBc トラスト / BBc Trust
beyondblockchain
1
160
BBc-1 設計文書 / BBc-1 (Beyond Blockchain One) Design Paper
beyondblockchain
0
140
Other Decks in Technology
See All in Technology
MCPが変えるAIとの協働
knishioka
1
140
LINE 購物幕後推手
line_developers_tw
PRO
0
400
Azure Maps Visual in PowerBIで分析しよう
nakasho
0
200
コードや知識を組み込む / Incorporating Codes and Knowledge
ks91
PRO
0
170
Serverlessだからこそコードと設計にはこだわろう
kenichirokimura
2
520
OPENLOGI Company Profile for engineer
hr01
1
26k
AI駆動で進化する開発プロセス ~クラスメソッドでの実践と成功事例~ / aidd-in-classmethod
tomoki10
1
940
ペアーズにおける評価ドリブンな AI Agent 開発のご紹介
fukubaka0825
9
2.3k
テストって楽しい!開発を加速させるテストの魅力 / Testing is Fun! The Fascinating of Testing to Accelerate Development
aiandrox
0
160
AIと共に乗り越える、 入社後2ヶ月の苦労と学習の軌跡
sai_kaneko
1
200
グループ ポリシー再確認 (2)
murachiakira
0
230
2025-04-24 "Manga AI Understanding & Localization" Furukawa Arata (CyberAgent, Inc)
ornew
2
340
Featured
See All Featured
Fireside Chat
paigeccino
37
3.4k
The Cost Of JavaScript in 2023
addyosmani
49
7.8k
Large-scale JavaScript Application Architecture
addyosmani
512
110k
Building Adaptive Systems
keathley
41
2.5k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
52
2.4k
It's Worth the Effort
3n
184
28k
Designing for humans not robots
tammielis
253
25k
Optimising Largest Contentful Paint
csswizardry
37
3.2k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Intergalactic Javascript Robots from Outer Space
tanoku
271
27k
YesSQL, Process and Tooling at Scale
rocio
172
14k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Transcript
BBc-1
[email protected]
https://speakerdeck.com/beyondblockchain BBc-1 — — 2020-05-14 – p.1/21
BBc-1 ( ) ( ) BBc-1 BBc-1 — — 2020-05-14
– p.2/21
BBc-1 BBc-1 ( ) / (1) (2) (3) BBc-1 —
— 2020-05-14 – p.3/21
#JUDPJO ##D$PSF ϨοδϟʔαϒγεςϜ ΞϓϦέʔγϣϯ ͦ ͷ ଞ ͞ · ͟
· ͳ Ξ ϓ Ϧ ͷ Մ ೳ ੑ ڞ௨ϥΠϒϥϦ ##D ։ൃ߲ Ҭ ௨ ՟ Ξ ϓ Ϧ ϙ Π ϯ τ Ξ ϓ Ϧ དྷ ྺ ূ ໌ Ξ ϓ Ϧ ʜ ॳظʹ͓͍ͯଘࡏূ໌Λґଘ ΞϯΧϦϯά ֤ϊʔυʹ͓͚Δهʹ ֤छσʔλϕʔεΛར༻Մೳ TRMJUF.Z42-ͦͷଞ%# BBc-1 σδλϧ௨՟ϥΠϒϥϦ ͦͷଞͷϥΠϒϥϦ CCDMJC 1ZUIPO (P +4 FUD Bitcoin Ethereum ( ) (Proof of Context) ( ) ( ) BBc-1 — — 2020-05-14 – p.4/21
Python3 bbc1 : https://speakerdeck.com/beyondblockchain/bbc-1-hands-on-installation-and-file-content-proof : https://speakerdeck.com/beyondblockchain/bbc-1-hands-on-ledger-subsystem-with-ethereum bbc1-lib-std ( ) bbc1-lib-registry
( ) BBc-1 — — 2020-05-14 – p.5/21
GitHub git clone $ git clone -b develop https://github.com/beyond-blockchain/bbc1-lib-std.git $
cd bbc1-lib-std tar pip (Python ) $ python setup.py sdist $ pip install dist/bbc1-lib-std-0.19.tar.gz dist tar pip install BBc-1 — — 2020-05-14 – p.6/21
( SQLite3 ) ( ) ( ) ( ) (
) BBc-1 — — 2020-05-14 – p.7/21
GitHub git clone ( ) $ git clone -b develop
https://github.com/beyond-blockchain/bbc1-lib-registry.git $ cd bbc1-lib-registry tar pip (Python ) $ python setup.py sdist $ pip install dist/bbc1-lib-registry-0.6.tar.gz dist tar pip install bbc_core.py BBc-1 — — 2020-05-14 – p.8/21
(registry) XML XML , etc. BBc-1 — — 2020-05-14 –
p.9/21
certificates certificates BBc-1 — — 2020-05-14 – p.10/21
certificates certificates bbc1-lib-registry bbc-lib-std XML (= ) BBc-1 — —
2020-05-14 – p.11/21
certificates GitHub git clone $ git clone https://github.com/beyond-blockchain/examples.git $ cd
examples/certificates certificates.py BBc-1 BBc-1 — — 2020-05-14 – p.12/21
certificates certificates XML (< c/ > OK) <c> <id>000-000-0001</id> <name>Benjamin
B. Clark</name> <membership>Fujisawa Don Tacos</membership> <date>1559692800</date> <expires-at>1906773886</expires-at> </c> ( < set/ > < c/ > ) id : (bbc1-lib-registry ) digest : SHA-256 date : (Unix ) BBc-1 — — 2020-05-14 – p.13/21
( ) ূ໌ ॻ ূ໌ ॻ ূ໌ ॻ
ূ໌ ॻ ূ໌ ॻ O μΠδΣετ μΠδΣετ μΠδΣετ μΠδΣετ μΠδΣετ μΠδΣετ μΠδΣετ حͷ߹ ෳ͢Δ ɾূ໌ॻ Λड͚औͬͨ " ࢯɺಉ࣌ʹϒϧʔͰࣔ͞ΕΔμΠδΣετͱͦΕ͕ࠨӈͷͲͪΒʹҐஔ͢Δ͔Λड͚औΔɻ ɾ" ࢯূ໌ॻ ͷμΠδΣετ͔Β࢝Ίͯɺ࿈͖݁͢Ұ࿈ͷμΠδΣετΛΔ͜ͱʹͳΔͷͰɺϚʔΫϧϧʔτʹࢸΔ·Ͱͷ ɹܭࢉΛ࠶ݱͰ͖ɺಘΒΕͨϚʔΫϧϧʔτ͕ &UIFSFVN εϚʔτίϯτϥΫτʹه͞Ε͍ͯΔͱҰக͢Δ͜ͱΛ֬ೝͰ͖Δɻ ɾͦͷܭࢉΛߦ͢Δͷ͕DFSU@qBTLQZͷαʔϏε ݪཧͷཧղͱඞཁͳใ͕͋Ε୭Ͱ࠶ݱͰ͖Δ ূ໌͞ΕΔ ɻ ه͢Δ ಡΈग़ͤΔ ূ໌Λ ඞཁͱ͢Δऀʹ ։ࣔ͞ΕΔใ ˞##Dɺ͜ͷߏΛอଘ ɹ͍ͯ͠Δ͕ɺαϒπϦʔΛ ɹ63- Խͯͨ͠͠ޙɺ ɹূ໌͢Δ্Ͱ##D ෆཁ ެ։͞ΕΔใ ϚʔΫϧϧʔτ Ϛ ồ Ϋ ϧ γ ε ς Ϝ ͕ อ ͠ ֤ Ϣ ồ β ʹ ෦ త ʹ ͑ Δ ʜʜ ʜʜ ʜʜ ʜʜ ʜʜ μΠδΣετ μΠδΣετ μΠδΣετ μΠδΣετ μΠδΣετ μΠδΣετ &UIFSFVNϒϩοΫνΣʔϯ ʜ ʜ ##DϥΠϒϥϦ ূ໌ॻΞϓϦͰ࣮ݱ BBc-1 — — 2020-05-14 – p.14/21
(1) $ python certificates.py --help ( ) (bbc_core.py ) $
python certificates.py new_domain domain id “./.bbc1_app_support” BBc-1 — — 2020-05-14 – p.15/21
(2) bbc_core.py $ eth_subsystem_tool.py -w ∼/.bbc1 -d config_tree 100 30
100 30 BBc-1 bbc_core.py $ eth_subsystem_tool.py -w ∼/.bbc1 -d enable BBc-1 — — 2020-05-14 – p.16/21
“sample-m.xml” ( 2 ) $ python certificates.py -w ∼/.bbc1 -d
-m register sample-m.xml -m 30 $ python certificates.py -w ∼/.bbc1 -d -m verify sample-m.xml 2>/dev/null Ethereum “sample-m.xml” ( $ git checkout sample-m.xml ) BBc-1 — — 2020-05-14 – p.17/21
(1) $ python certificates.py -w ∼/.bbc1 -d -m query sample-m.xml
“certificate=” cert_flask.py “cert/cert_flask.py” S_CONTRACT_ADDRESS BBc-1 — — 2020-05-14 – p.18/21
(2) $ python index.py localhost:5000 localhost:5000/cert/?certificate= . . . &subtree=
. . . URL BBc-1 — — 2020-05-14 – p.19/21
XML ( ) BBc-1 — — 2020-05-14 – p.20/21
BBc-1 certificates.py cert_flask.py bbc1-lib-registry bbc1-lib-std BBc-1 — — 2020-05-14 –
p.21/21