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
81
BBc-1 ハンズオン : RFID タグによる物流追跡 / BBc-1 Hands-on : Using RFID Tags for Logistics Tracking
beyondblockchain
0
78
BBc-1 ハンズオン : さまざまな証明書の登録とその検証(ウェブ版) / BBc-1 Hands on: Registry for Certificates and Verification (on Web)
beyondblockchain
0
180
BBc-1 ハンズオン : デジタル通貨の送金とスワップを通して学ぶBBc-1 トランザクション / BBc-1 Hands on: Digital Currency Transfer and Swap
beyondblockchain
2
400
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
150
Other Decks in Technology
See All in Technology
Android Audio: Beyond Winning On It
atsushieno
0
5.6k
AWSで始める実践Dagster入門
kitagawaz
1
760
CDK CLIで使ってたあの機能、CDK Toolkit Libraryではどうやるの?
smt7174
4
200
会社紹介資料 / Sansan Company Profile
sansan33
PRO
7
380k
開発者を支える Internal Developer Portal のイマとコレカラ / To-day and To-morrow of Internal Developer Portals: Supporting Developers
aoto
PRO
1
480
AIエージェント開発用SDKとローカルLLMをLINE Botと組み合わせてみた / LINEを使ったLT大会 #14
you
PRO
0
140
Snowflake×dbtを用いたテレシーのデータ基盤のこれまでとこれから
sagara
0
150
AIエージェントで90秒の広告動画を制作!台本・音声・映像・編集をつなぐAWS最新アーキテクチャの実践
nasuvitz
3
400
いま注目のAIエージェントを作ってみよう
supermarimobros
0
370
【NoMapsTECH 2025】AI Edge Computing Workshop
akit37
0
360
「どこから読む?」コードとカルチャーに最速で馴染むための実践ガイド
zozotech
PRO
0
580
Rustから学ぶ 非同期処理の仕組み
skanehira
1
160
Featured
See All Featured
The Invisible Side of Design
smashingmag
301
51k
Thoughts on Productivity
jonyablonski
70
4.8k
Code Review Best Practice
trishagee
71
19k
Building Flexible Design Systems
yeseniaperezcruz
329
39k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
3k
4 Signs Your Business is Dying
shpigford
184
22k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.6k
The Straight Up "How To Draw Better" Workshop
denniskardys
236
140k
Rebuilding a faster, lazier Slack
samanthasiow
83
9.2k
Making the Leap to Tech Lead
cromwellryan
135
9.5k
The Cult of Friendly URLs
andyhume
79
6.6k
VelocityConf: Rendering Performance Case Studies
addyosmani
332
24k
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