100% found this document useful (1 vote)
17 views

Download Full Introducing Blockchain Applications: Understand and Develop Blockchain Applications Through Distributed Systems George PDF All Chapters

Introducing

Uploaded by

hubiegiedr61
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
17 views

Download Full Introducing Blockchain Applications: Understand and Develop Blockchain Applications Through Distributed Systems George PDF All Chapters

Introducing

Uploaded by

hubiegiedr61
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 50

Experience Seamless Full Ebook Downloads for Every Genre at ebookmeta.

com

Introducing Blockchain Applications: Understand


and Develop Blockchain Applications Through
Distributed Systems George

https://ebookmeta.com/product/introducing-blockchain-
applications-understand-and-develop-blockchain-applications-
through-distributed-systems-george/

OR CLICK BUTTON

DOWNLOAD NOW

Explore and download more ebook at https://ebookmeta.com


Recommended digital products (PDF, EPUB, MOBI) that
you can download immediately if you are interested.

Blockchain Enabled Applications: Understand the Blockchain


Ecosystem and How to Make it Work for You 2nd Edition
Vikram Dhillon
https://ebookmeta.com/product/blockchain-enabled-applications-
understand-the-blockchain-ecosystem-and-how-to-make-it-work-for-
you-2nd-edition-vikram-dhillon/
ebookmeta.com

Blockchain Technology and Applications 1st Edition Ahmed


Banafa

https://ebookmeta.com/product/blockchain-technology-and-
applications-1st-edition-ahmed-banafa/

ebookmeta.com

Blockchain Technology for IoT Applications Seok-Won Lee

https://ebookmeta.com/product/blockchain-technology-for-iot-
applications-seok-won-lee/

ebookmeta.com

Intelligent Sensing and Communications for Internet of


Everything 1st Edition Zhengyu Zhu

https://ebookmeta.com/product/intelligent-sensing-and-communications-
for-internet-of-everything-1st-edition-zhengyu-zhu/

ebookmeta.com
Physics 5th Edition James Walker

https://ebookmeta.com/product/physics-5th-edition-james-walker/

ebookmeta.com

The Force Oversleeps Jarrett J. Krosoczka

https://ebookmeta.com/product/the-force-oversleeps-jarrett-j-
krosoczka/

ebookmeta.com

Plant Essential Oils: From Traditional to Modern-day


Application 1st Edition Bhanu Prakash

https://ebookmeta.com/product/plant-essential-oils-from-traditional-
to-modern-day-application-1st-edition-bhanu-prakash/

ebookmeta.com

Arts of Dying Literature and Finitude in Medieval England


First Edition Smith

https://ebookmeta.com/product/arts-of-dying-literature-and-finitude-
in-medieval-england-first-edition-smith/

ebookmeta.com

The Promise of American Life Updated Edition Herbert Croly

https://ebookmeta.com/product/the-promise-of-american-life-updated-
edition-herbert-croly/

ebookmeta.com
Love In the Rockies Second Chance Billionaire Romance 1st
Edition Eva Winners [Winners

https://ebookmeta.com/product/love-in-the-rockies-second-chance-
billionaire-romance-1st-edition-eva-winners-winners/

ebookmeta.com
Introducing
Blockchain
Applications
Understand and Develop Blockchain
Applications Through Distributed Systems

Joseph Thachil George
Introducing Blockchain
Applications
Understand and Develop
Blockchain Applications Through
Distributed Systems

Joseph Thachil George


Introducing Blockchain Applications: Understand and Develop Blockchain
Applications Through Distributed Systems

Joseph Thachil George


Rome, Italy

ISBN-13 (pbk): 978-1-4842-7479-8 ISBN-13 (electronic): 978-1-4842-7480-4


https://doi.org/10.1007/978-1-4842-7480-4

Copyright © 2022 by Joseph Thachil George


This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the
material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation,
broadcasting, reproduction on microfilms or in any other physical way, and transmission or information
storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now
known or hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with
every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an
editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the
trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not
identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to
proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of publication,
neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or
omissions that may be made. The publisher makes no warranty, express or implied, with respect to the
material contained herein.
Managing Director, Apress Media LLC: Welmoed Spahr
Acquisitions Editor: Spandana Chatterjee
Development Editor: James Markham
Coordinating Editor: Mark Powers
Copyeditor: Kezia Endsley
Cover designed by eStudioCalamar
Cover image by Shubham Dhage on Unsplash (www.unsplash.com)
Distributed to the book trade worldwide by Apress Media, LLC, 1 New York Plaza, New York, NY 10004,
U.S.A. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-ny@springer-sbm.com, or visit www.
springeronline.com. Apress Media, LLC is a California LLC and the sole member (owner) is Springer Science
+ Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation.
For information on translations, please e-mail booktranslations@springernature.com; for reprint,
paperback, or audio rights, please e-mail bookpermissions@springernature.com.
Apress titles may be purchased in bulk for academic, corporate, or promotional use. eBook versions and
licenses are also available for most titles. For more information, reference our Print and eBook Bulk Sales
web page at http://www.apress.com/bulk-sales.
Any source code or other supplementary material referenced by the author in this book is available to
readers on GitHub (github.com/apress/introducing-blockchain-applications). For more detailed
information, please visit http://www.apress.com/source-­code.
Printed on acid-free paper
Table of Contents
About the Author�����������������������������������������������������������������������������������������������������xv

About the Technical Reviewer�������������������������������������������������������������������������������xvii


Acknowledgments��������������������������������������������������������������������������������������������������xix

Chapter 1: Introducing Blockchain Applications Through Distributed Systems������� 1


1.1 Blockchain Use Cases������������������������������������������������������������������������������������������������������������� 1
1.2 What This Book Covers������������������������������������������������������������������������������������������������������������ 3

Chapter 2: An Introduction to Blockchain���������������������������������������������������������������� 5


2.1 A Short History of Blockchain������������������������������������������������������������������������������������������������� 6
2.2 Applications Using Blockchain������������������������������������������������������������������������������������������������ 7
2.3 Why Blockchain Matters��������������������������������������������������������������������������������������������������������� 8
2.4 Summary�������������������������������������������������������������������������������������������������������������������������������� 8

Chapter 3: Bitcoin����������������������������������������������������������������������������������������������������� 9
3.1 The History of Bitcoin������������������������������������������������������������������������������������������������������������ 10
3.1.1 Linked Timestamping and the Merkle Tree������������������������������������������������������������������� 12
3.1.2 Distributed Consensus�������������������������������������������������������������������������������������������������� 13
3.2 Proof of Work������������������������������������������������������������������������������������������������������������������������ 14
3.2.1 Nakamoto’s Genius������������������������������������������������������������������������������������������������������� 15
3.3 Key and Address������������������������������������������������������������������������������������������������������������������� 16
3.3.1 Private Key������������������������������������������������������������������������������������������������������������������� 16
3.3.2 Public Key��������������������������������������������������������������������������������������������������������������������� 17
3.3.3 Bitcoin Address������������������������������������������������������������������������������������������������������������� 19
3.3.4 Digital Signature����������������������������������������������������������������������������������������������������������� 20

iii
Table of Contents

3.4 The Transaction��������������������������������������������������������������������������������������������������������������������� 26


3.4.1 The Unspent Transaction Output (UTXO)����������������������������������������������������������������������� 27
3.4.2 Input and Output (I&O)�������������������������������������������������������������������������������������������������� 30
3.4.3 Pay to Public Key Hash (P2PKH)����������������������������������������������������������������������������������� 32
3.4.4 Looking at the Output Side������������������������������������������������������������������������������������������� 33
3.4.5 Looking at the Input Side���������������������������������������������������������������������������������������������� 34
3.4.6 Validation Process�������������������������������������������������������������������������������������������������������� 35
3.4.7 Transaction Structure��������������������������������������������������������������������������������������������������� 38
3.4.8 Transaction Fee������������������������������������������������������������������������������������������������������������ 38
3.5 Transaction Flow������������������������������������������������������������������������������������������������������������������� 39
3.6 The Block������������������������������������������������������������������������������������������������������������������������������ 41
3.6.1 The Structure of a Block����������������������������������������������������������������������������������������������� 43
3.6.2 The Block Header��������������������������������������������������������������������������������������������������������� 43
3.7 The Nakamoto Consensus����������������������������������������������������������������������������������������������������� 46
3.7.1 Miner���������������������������������������������������������������������������������������������������������������������������� 47
3.7.2 Coinbase Transaction��������������������������������������������������������������������������������������������������� 48
3.7.3 Developing the Block Header��������������������������������������������������������������������������������������� 49
3.7.4 Difficulty Target������������������������������������������������������������������������������������������������������������ 50
3.7.5 Proof of Work���������������������������������������������������������������������������������������������������������������� 51
3.7.6 Validating a New Block������������������������������������������������������������������������������������������������� 51
3.7.7 The Blockchain Forks��������������������������������������������������������������������������������������������������� 52
3.8 Summary������������������������������������������������������������������������������������������������������������������������������ 54

Chapter 4: Ethereum����������������������������������������������������������������������������������������������� 55
4.1 Blockchain as a State Transition System������������������������������������������������������������������������������ 57
4.2 Ethereum Account����������������������������������������������������������������������������������������������������������������� 60
4.2.1 The Account State��������������������������������������������������������������������������������������������������������� 60
4.2.2 Externally Owned Accounts (EOAs)������������������������������������������������������������������������������� 61
4.2.3 Contract Accounts�������������������������������������������������������������������������������������������������������� 62
4.2.4 Differences Between Externally Owned and Contract Accounts���������������������������������� 63
4.2.5 Storing Key: Encrypted Keystore���������������������������������������������������������������������������������� 64

iv
Table of Contents

4.3 World State���������������������������������������������������������������������������������������������������������������������������� 65


4.3.1 Trie�������������������������������������������������������������������������������������������������������������������������������� 66
4.3.2 The Radix Tree�������������������������������������������������������������������������������������������������������������� 66
4.3.3 Patricia Trie������������������������������������������������������������������������������������������������������������������� 68
4.3.4 Ethereum Modified Merkle Patricia Trie����������������������������������������������������������������������� 69
4.3.5 Storage Root����������������������������������������������������������������������������������������������������������������� 72
4.3.6 Why Merkle Trees?������������������������������������������������������������������������������������������������������� 73
4.4 Ethereum Virtual Machine����������������������������������������������������������������������������������������������������� 74
4.5 What Is a Gas?���������������������������������������������������������������������������������������������������������������������� 74
4.5.1 Gas for Storing�������������������������������������������������������������������������������������������������������������� 77
4.5.2 The Purpose of Gas������������������������������������������������������������������������������������������������������� 79
4.6 Transactions and Messages�������������������������������������������������������������������������������������������������� 79
4.6.1 Transaction Structure��������������������������������������������������������������������������������������������������� 80
4.6.2 Transaction Digital Signature Flow������������������������������������������������������������������������������� 81
4.6.3 Recovery Public Key from Digital Signature����������������������������������������������������������������� 82
4.6.4 Three Types of Transactions����������������������������������������������������������������������������������������� 85
4.6.5 Messages��������������������������������������������������������������������������������������������������������������������� 87
4.7 Ethereum State Transition Function�������������������������������������������������������������������������������������� 89
4.8 Transaction Flow in Ethereum Blockchain���������������������������������������������������������������������������� 91
4.9 Transaction State������������������������������������������������������������������������������������������������������������������ 95
4.10 Block Structure������������������������������������������������������������������������������������������������������������������� 96
4.10.1 Transaction Receipts�������������������������������������������������������������������������������������������������� 99
4.10.2 Ommer Blocks���������������������������������������������������������������������������������������������������������� 100
4.11 Ethereum Simplified Ghost����������������������������������������������������������������������������������������������� 100
4.12 Ethereum Consensus�������������������������������������������������������������������������������������������������������� 102
4.12.1 The Proof of Work Algorithm (PWA)�������������������������������������������������������������������������� 104
4.13 Ethereum 2.0��������������������������������������������������������������������������������������������������������������������� 104
4.14 Summary�������������������������������������������������������������������������������������������������������������������������� 106

v
Table of Contents

Chapter 5: Proof of Stake: Consensus of the Future��������������������������������������������� 107


5.1 Chain-Based Proof of Stake������������������������������������������������������������������������������������������������ 110
5.1.1 Committee-Based PoS������������������������������������������������������������������������������������������������ 111
5.1.2 The Nothing at Stake Theory�������������������������������������������������������������������������������������� 113
5.1.3 BFT-Based Proof of Stake������������������������������������������������������������������������������������������� 115
5.2 Ethereum Casper���������������������������������������������������������������������������������������������������������������� 117
5.3 Casper Implementation������������������������������������������������������������������������������������������������������� 118
5.4 Summary���������������������������������������������������������������������������������������������������������������������������� 123

Chapter 6: Hyperledger Fabric������������������������������������������������������������������������������ 125


6.1 High-Level Perspective������������������������������������������������������������������������������������������������������� 126
6.2 Assets��������������������������������������������������������������������������������������������������������������������������������� 127
6.3 Chaincode��������������������������������������������������������������������������������������������������������������������������� 128
6.4 Characteristics of the Ledger���������������������������������������������������������������������������������������������� 128
6.5 Privacy�������������������������������������������������������������������������������������������������������������������������������� 129
6.6 Identity�������������������������������������������������������������������������������������������������������������������������������� 130
6.6.1 Infrastructure with Public Keys (PKI)�������������������������������������������������������������������������� 130
6.6.2 Digital Certificates������������������������������������������������������������������������������������������������������ 131
6.7 Certificate Authorities��������������������������������������������������������������������������������������������������������� 133
6.8 Membership Service Provider (MSP)���������������������������������������������������������������������������������� 133
6.8.1 Local MSP������������������������������������������������������������������������������������������������������������������� 134
6.8.2 Channel MSP�������������������������������������������������������������������������������������������������������������� 134
6.8.3 Storing MSP Data������������������������������������������������������������������������������������������������������� 135
6.9 Peers����������������������������������������������������������������������������������������������������������������������������������� 135
6.9.1 Peers and Organizations��������������������������������������������������������������������������������������������� 137
6.9.2 Peers and Identity������������������������������������������������������������������������������������������������������� 138
6.9.3 Peer, Consensus, and Order���������������������������������������������������������������������������������������� 139
6.10 Hyperledger Fabric Consensus����������������������������������������������������������������������������������������� 140
6.10.1 Stage 1: Proposal����������������������������������������������������������������������������������������������������� 140
6.10.2 Stage 2: Transactions Are Ordered and Packaged in Blocks������������������������������������ 141

vi
Table of Contents

6.11 Ledger������������������������������������������������������������������������������������������������������������������������������� 143


6.11.1 Blockchain���������������������������������������������������������������������������������������������������������������� 144
6.11.2 Transaction��������������������������������������������������������������������������������������������������������������� 145
6.11.3 World State��������������������������������������������������������������������������������������������������������������� 146
6.12 Ordering Service Implementations����������������������������������������������������������������������������������� 146
6.13 Summary�������������������������������������������������������������������������������������������������������������������������� 147

Chapter 7: Consensus Algorithms for Blockchains���������������������������������������������� 149


7.1 Consensus Algorithms and Cryptocurrency������������������������������������������������������������������������ 149
7.2 Objectives of Consensus Models���������������������������������������������������������������������������������������� 150
7.3 Different Types of Consensus Algorithms���������������������������������������������������������������������������� 151
7.4 Types of Blockchain Consensus Algorithms������������������������������������������������������������������������ 152
7.4.1 Proof-of-Work (PoW)��������������������������������������������������������������������������������������������������� 152
7.4.2 Proof of Stake (PoS)��������������������������������������������������������������������������������������������������� 153
7.4.3 Byzantine Fault Tolerance (BFT)��������������������������������������������������������������������������������� 154
7.4.4 Practical-BFT�������������������������������������������������������������������������������������������������������������� 154
7.4.5 Delegated Byzantine Fault Tolerance (dBFT)�������������������������������������������������������������� 154
7.4.6 Direct Acyclic Graph (DAG)����������������������������������������������������������������������������������������� 155
7.4.7 Proof of Capacity (PoC)����������������������������������������������������������������������������������������������� 155
7.4.8 Proof-of-Burn (PoB)���������������������������������������������������������������������������������������������������� 155
7.4.9 Proof-of-Identity (PoI)������������������������������������������������������������������������������������������������� 156
7.4.10 Proof-of-Activity (PoA)���������������������������������������������������������������������������������������������� 156
7.4.11 Proof-of-Elapsed Time (PoET)����������������������������������������������������������������������������������� 156
7.4.12 Proof-of-Importance (PoI)����������������������������������������������������������������������������������������� 157
7.5 Consensus in Distributed Systems and Blockchain Technology����������������������������������������� 157
7.6 Review Questions��������������������������������������������������������������������������������������������������������������� 159
7.7 Review Answers������������������������������������������������������������������������������������������������������������������ 160
7.8 Summary���������������������������������������������������������������������������������������������������������������������������� 161

vii
Table of Contents

Chapter 8: The Consensus Algorithms for Blockchains Project��������������������������� 163


8.1 Starting the Project������������������������������������������������������������������������������������������������������������� 163
8.2 The Python Code����������������������������������������������������������������������������������������������������������������� 164
8.3 Example 2: Using Flask in Python��������������������������������������������������������������������������������������� 167
8.3.1 Step 1: Create a Simple Proof of Work����������������������������������������������������������������������� 168
8.3.2 Step 2: Create an API Endpoint for Blockchain����������������������������������������������������������� 169
8.3.3 Step 3: Create a Blockchain Miner����������������������������������������������������������������������������� 171
8.3.4 Step 4: Run Your Blockchain Project�������������������������������������������������������������������������� 171
8.4 Review Questions��������������������������������������������������������������������������������������������������������������� 172
8.5 Review Answers������������������������������������������������������������������������������������������������������������������ 173
8.6 Summary���������������������������������������������������������������������������������������������������������������������������� 173

Chapter 9: Real-Time Systems����������������������������������������������������������������������������� 175


9.1 Understanding Real-Time Systems������������������������������������������������������������������������������������� 175
9.2 Real-Time System Reference Model����������������������������������������������������������������������������������� 176
9.2.1 Fail-Safe vs. Fail-Operational Systems���������������������������������������������������������������������� 177
9.2.2 Guaranteed Timeliness vs. Best Effort Systems��������������������������������������������������������� 178
9.3 RT System Categorization��������������������������������������������������������������������������������������������������� 178
9.3.1 Resource Adequacy���������������������������������������������������������������������������������������������������� 178
9.3.2 Predictability in Rare Event Situations����������������������������������������������������������������������� 179
9.3.3 The State and Event���������������������������������������������������������������������������������������������������� 179
9.3.4 Time Triggered vs. Event Triggered Systems�������������������������������������������������������������� 179
9.4 Temporal Requirements������������������������������������������������������������������������������������������������������ 180
9.5 Classification of the Scheduling Algorithm������������������������������������������������������������������������� 180
9.5.1 Hard Real-Time and Soft Real-Time Scheduling�������������������������������������������������������� 180
9.5.2 Dynamic and Static Schedulers���������������������������������������������������������������������������������� 180
9.5.3 Scheduler With/Without Preemption�������������������������������������������������������������������������� 181
9.5.4 Static Scheduling������������������������������������������������������������������������������������������������������� 181
9.5.5 Dynamic Scheduling��������������������������������������������������������������������������������������������������� 181
9.5.6 Independent Task Scheduling������������������������������������������������������������������������������������� 181

viii
Table of Contents

9.6 Review Questions��������������������������������������������������������������������������������������������������������������� 181


9.7 Review Answers������������������������������������������������������������������������������������������������������������������ 182
9.8 Summary���������������������������������������������������������������������������������������������������������������������������� 183

Chapter 10: Scheduling in Real-Time Systems����������������������������������������������������� 185


10.1 The Concept of Scheduling����������������������������������������������������������������������������������������������� 186
10.2 Types of Constraints���������������������������������������������������������������������������������������������������������� 188
10.2.1 Independent Task Scheduling Constraints���������������������������������������������������������������� 189
10.2.2 Scheduling Dependent Tasks����������������������������������������������������������������������������������� 190
10.3 Review Questions and Answers���������������������������������������������������������������������������������������� 191
10.3.1 Review Questions����������������������������������������������������������������������������������������������������� 191
10.3.2 Answers�������������������������������������������������������������������������������������������������������������������� 193
10.4 Summary�������������������������������������������������������������������������������������������������������������������������� 193

Chapter 11: Engineering Based on Models����������������������������������������������������������� 195


11.1 Model-Driven Approach to Blockchain������������������������������������������������������������������������������ 195
11.2 Model-Driven Development���������������������������������������������������������������������������������������������� 196
11.2.1 The Blockchain Layer Model������������������������������������������������������������������������������������� 196
11.2.2 Models and Metamodels������������������������������������������������������������������������������������������ 197
11.2.3 The Model����������������������������������������������������������������������������������������������������������������� 198
11.2.4 The Metamodel��������������������������������������������������������������������������������������������������������� 199
11.3 Building the Metamodel and Model���������������������������������������������������������������������������������� 201
11.4 A Modeling Language’s Category�������������������������������������������������������������������������������������� 202
11.5 Designing a Metamodel for CPSs�������������������������������������������������������������������������������������� 204
11.6 CPS Metamodel Examples������������������������������������������������������������������������������������������������ 205
11.6.1 Meta-Object Facility������������������������������������������������������������������������������������������������� 205
11.7 Review Questions������������������������������������������������������������������������������������������������������������� 209
11.8 Review Answers���������������������������������������������������������������������������������������������������������������� 209
11.9 Summary�������������������������������������������������������������������������������������������������������������������������� 210

ix
Table of Contents

Chapter 12: BLOCKLY 4SOS����������������������������������������������������������������������������������� 211


12.1 SOS Modeling�������������������������������������������������������������������������������������������������������������������� 211
12.2 Environment for SoS Behavior Simulation������������������������������������������������������������������������ 218
12.3 Review Questions������������������������������������������������������������������������������������������������������������� 223
12.4 Review Answers���������������������������������������������������������������������������������������������������������������� 224
12.5 Summary�������������������������������������������������������������������������������������������������������������������������� 224

Chapter 13: Cyber-Physical Systems Project������������������������������������������������������� 225


13.1 Using Kilobots������������������������������������������������������������������������������������������������������������������� 225
13.1.1 The Kilobots Movements������������������������������������������������������������������������������������������ 226
13.2 Project Requirements������������������������������������������������������������������������������������������������������� 227
13.2.1 Architecture�������������������������������������������������������������������������������������������������������������� 227
13.2.2 Project Communication�������������������������������������������������������������������������������������������� 228
13.2.3 Time�������������������������������������������������������������������������������������������������������������������������� 228
13.2.4 Dynamicity���������������������������������������������������������������������������������������������������������������� 228
13.2.5 Dependability������������������������������������������������������������������������������������������������������������ 228
13.3 Blockly4SoS Model����������������������������������������������������������������������������������������������������������� 229
13.4 Implementing the Project�������������������������������������������������������������������������������������������������� 229
13.5 Executing the Project�������������������������������������������������������������������������������������������������������� 230
13.6 Project Code���������������������������������������������������������������������������������������������������������������������� 232
13.7 Summary�������������������������������������������������������������������������������������������������������������������������� 245

Chapter 14: Using a MATLAB Smart Farm Project������������������������������������������������ 247


14.1 Description of the Smart Farm Project����������������������������������������������������������������������������� 247
14.1.1 Project Requirements����������������������������������������������������������������������������������������������� 249
14.1.2 Solution Hints����������������������������������������������������������������������������������������������������������� 250
14.2 Implementing the Project�������������������������������������������������������������������������������������������������� 251
14.2.1 Environment Models������������������������������������������������������������������������������������������������� 251
14.2.2 Sensor Models���������������������������������������������������������������������������������������������������������� 252
14.2.3 Multi-Robot Lidar Sensor������������������������������������������������������������������������������������������ 252
14.3 The System Architecture��������������������������������������������������������������������������������������������������� 252

x
Table of Contents

14.4 System Modeling�������������������������������������������������������������������������������������������������������������� 254


14.4.1 Robot Visualizer and Lidar Sensor���������������������������������������������������������������������������� 255
14.4.2 Obstacle Avoidance Logic and 2 PC Protocol Concept���������������������������������������������� 255
14.4.3 Architecture of North and South Farm and Storehouse�������������������������������������������� 256
14.5 Implementing the Two-Phase Commit Protocol���������������������������������������������������������������� 257
14.5.1 Requirements����������������������������������������������������������������������������������������������������������� 258
14.5.2 Problems Encountered��������������������������������������������������������������������������������������������� 259
14.6 Summary�������������������������������������������������������������������������������������������������������������������������� 261

Chapter 15: The Platoon Project��������������������������������������������������������������������������� 263


15.1 The Game Environment����������������������������������������������������������������������������������������������������� 264
15.1.1 SoS Organization������������������������������������������������������������������������������������������������������ 264
15.1.2 CS-Level������������������������������������������������������������������������������������������������������������������� 265
15.1.3 SOS-Level����������������������������������������������������������������������������������������������������������������� 265
15.1.4 Viewpoint Emergence����������������������������������������������������������������������������������������������� 265
15.1.5 Viewpoint Dynamicity����������������������������������������������������������������������������������������������� 265
15.1.6 Viewpoint Time��������������������������������������������������������������������������������������������������������� 266
15.2 The Cyber-Physical Systems��������������������������������������������������������������������������������������������� 266
15.3 Kilobot Source Code���������������������������������������������������������������������������������������������������������� 266
15.4 Kilobots Movement����������������������������������������������������������������������������������������������������������� 279
15.5 Cyber-Physical Modeling��������������������������������������������������������������������������������������������������� 279
15.6 Summary�������������������������������������������������������������������������������������������������������������������������� 318

Chapter 16: Blockchain Technology and Distributed System Future Scope


and B-Coin Project���������������������������������������������������������������������������� 319
16.1 Blockchain and IoT Security���������������������������������������������������������������������������������������������� 320
16.1.1 Blockchain Implementations and Use Cases in IoT�������������������������������������������������� 320
16.1.2 Challenges with Integrating Blockchain Into IoT������������������������������������������������������ 320
16.2 Safety Recommendations������������������������������������������������������������������������������������������������� 321
16.3 Blockchain Security and Privacy��������������������������������������������������������������������������������������� 322

xi
Table of Contents

16.4 The Future Scope�������������������������������������������������������������������������������������������������������������� 322


16.4.1 Blockchain Architecture: Private, Public, or Hybrid-Public Blockchain Design��������� 323
16.4.2 Inducement��������������������������������������������������������������������������������������������������������������� 323
16.4.3 Data Privacy�������������������������������������������������������������������������������������������������������������� 323
16.5 Having Realistic Expectations of Blockchain�������������������������������������������������������������������� 324
16.6 Food Certification�������������������������������������������������������������������������������������������������������������� 324
16.7 Smart Contracts and Notaries������������������������������������������������������������������������������������������� 325
16.7.1 Applying Blockchain Technology to Smart Contracts����������������������������������������������� 325
16.7.2 Developing Blockchain in the Market����������������������������������������������������������������������� 327
16.7.3 The Geopolitics of the Blockchain���������������������������������������������������������������������������� 327
16.7.4 Books, Whitepapers, and Blockchains���������������������������������������������������������������������� 328
16.8 Bitcoin (B-Coin) Sample Project���������������������������������������������������������������������������������������� 328
16.8.1 The Project Code������������������������������������������������������������������������������������������������������ 328
16.8.2 Changing the Blockchain into Cryptocurrency��������������������������������������������������������� 351
16.8.3 GET��������������������������������������������������������������������������������������������������������������������������� 352
16.8.4 POST������������������������������������������������������������������������������������������������������������������������� 352
16.9 Functions of the Nodes����������������������������������������������������������������������������������������������������� 352
16.9.1 Create a New Candidate Block by Combining Valid Transactions����������������������������� 354
16.9.2 Computing Power on the Defensive Wall (Hash Rate)���������������������������������������������� 354
16.10 Creating New Bitcoins����������������������������������������������������������������������������������������������������� 355
16.10.1 The Concept of Decentralization����������������������������������������������������������������������������� 355
16.11 Summary������������������������������������������������������������������������������������������������������������������������ 356

Chapter 17: AI and Blockchain Monitoring Autonomous Vehicles


Management Project������������������������������������������������������������������������� 357
17.1 The Connection Between Blockchain and Artificial intelligence��������������������������������������� 357
17.1.1 AI and Blockchain in Applications����������������������������������������������������������������������������� 358
17.1.2 AI’s Role in Making Real-Time Intelligent and Decision-­Making Machines�������������� 359
17.2 Blockchain for Information Sharing and Exchange����������������������������������������������������������� 360
17.3 Dependability and Safety�������������������������������������������������������������������������������������������������� 363
17.4 Tracking the System���������������������������������������������������������������������������������������������������������� 367
17.5 Motivation and Goal of This Work�������������������������������������������������������������������������������������� 370

xii
Table of Contents

17.6 Automotive Applications���������������������������������������������������������������������������������������������������� 371


17.6.1 Autonomous Cars as Cyber-Physical Systems��������������������������������������������������������� 371
17.7 Safety and Self-Controlled Vehicles���������������������������������������������������������������������������������� 373
17.8 Controller: The Problem with the Checker������������������������������������������������������������������������ 374
17.9 System Analysis Method��������������������������������������������������������������������������������������������������� 381
17.9.1 Preliminary Rounds and Introduction����������������������������������������������������������������������� 381
17.10 The Experimental Method����������������������������������������������������������������������������������������������� 384
17.10.1 Controller Test�������������������������������������������������������������������������������������������������������� 385
17.10.2 Monitor or Observation Testing������������������������������������������������������������������������������� 388
17.10.3 Controller Retraining���������������������������������������������������������������������������������������������� 392
17.11 Method Implementation and Results������������������������������������������������������������������������������ 393
17.12 The Tools and Software��������������������������������������������������������������������������������������������������� 394
17.12.1 CARLA Simulator���������������������������������������������������������������������������������������������������� 394
17.12.2 Controller Settings�������������������������������������������������������������������������������������������������� 397
17.12.3 Safety Monitor Implementation������������������������������������������������������������������������������ 398
17.13 Experimental Activity������������������������������������������������������������������������������������������������������ 400
17.14 Results���������������������������������������������������������������������������������������������������������������������������� 403
17.14.1 Testing the Controller (Phase 1)������������������������������������������������������������������������������ 403
17.14.2 Monitor Assessment (Phase 2)������������������������������������������������������������������������������� 410
17.14.3 Retraining and Rechecking (Phase 3)��������������������������������������������������������������������� 415
17.15 Summary������������������������������������������������������������������������������������������������������������������������ 417

Chapter 18: Summary������������������������������������������������������������������������������������������� 421


18.1 Blockchain in the Policy Context��������������������������������������������������������������������������������������� 422
18.1.1 Avoiding the Tragedy of the Commons��������������������������������������������������������������������� 422
18.2 Transforming Industry and Markets���������������������������������������������������������������������������������� 425
18.2.1 Government and the Public Sector��������������������������������������������������������������������������� 425
18.2.2 Data Management���������������������������������������������������������������������������������������������������� 426
18.3 Secure Recommendations������������������������������������������������������������������������������������������������ 426
18.3.1 Privacy Policy����������������������������������������������������������������������������������������������������������� 426
18.3.2 Smart Contracts�������������������������������������������������������������������������������������������������������� 427
18.3.3 Distributed Computing Systems������������������������������������������������������������������������������� 428

xiii
Table of Contents

18.3.4 Distributed Information Systems������������������������������������������������������������������������������ 428


18.3.5 Distributed Pervasive Systems��������������������������������������������������������������������������������� 429
18.4 Client and Server Anatomy����������������������������������������������������������������������������������������������� 431
18.4.1 Client������������������������������������������������������������������������������������������������������������������������ 431
18.4.2 Server����������������������������������������������������������������������������������������������������������������������� 432
18.5 Questions About Distributed Systems������������������������������������������������������������������������������� 433
18.5.1 What Is the Role of Middleware in a Distributed System?���������������������������������������� 433
18.5.2 What Is Meant By Transparency (of Distribution)?���������������������������������������������������� 433
18.5.3 Why Is it Sometimes Difficult to Hide the Occurrence of a Failure and
Its Recovery in a Distributed System?��������������������������������������������������������������������������������� 434
18.5.4 Is It Okay to Have Two Different Programming Languages for the
Development of Distributed Systems?�������������������������������������������������������������������������������� 434
18.5.5 What Is the Difference Between Cache and Replication?����������������������������������������� 435
18.5.6 When Is It Appropriate To Use a Cluster Rather Than a Grid Computer?������������������ 435
18.5.7 How Do You Differentiate Between Different Types of Distributed Systems?����������� 435
18.6 Advantages and Disadvantages of Blockchain����������������������������������������������������������������� 436
18.7 Blockchain Technology and Cost Cutting�������������������������������������������������������������������������� 440
18.8 Summary�������������������������������������������������������������������������������������������������������������������������� 441

Index��������������������������������������������������������������������������������������������������������������������� 443

xiv
Random documents with unrelated
content Scribd suggests to you:
many schools of to-day arose from the original disagreement. To get
some insight into a curious phase of Japanese social life, I took
lessons in cha no yu of Matsuda, an eminent master of the art,
presiding over the ceremonial tea-rooms of the Hoishigaoka club-
house in Tokio.
There could be no more charming place in which to study the
etiquette of tea drinking, and the master was one of those mellow,
gentle, gracious men of old Japan, who are the perfect flower of
generations of culture and refinement in that most æsthetic country
of the world. In the afternoon and evening the Hoishigaoka, on the
apex of Sanno hill, is the resort of the nobles, scholars, and literary
men, who compose its membership, but in the morning hours, it is
all dappled shadow and quiet. The master was much pleased at
having four foreign pupils, and all the hill-side took an interest in our
visits. We followed the etiquette strictly, first taking off our shoes—
for one would as soon think of walking hob-nailed across a piano-
top, as of marring the polished woods of Japanese corridors, or the
fine, soft mats of their rooms with heel-marks—and sitting on our
heels, as long as our unaccustomed and protesting muscles and
tendons permitted.
THE NESANS AT THE HOISHIGAOKA

First, bringing in the basket of selected charcoal, with its pretty


twigs of charred azalea coated with lime, Matsuda replenished the
fire in the square hearth in the floor, dusted the edges with an
eagle’s feather, and dropped incense on the coals. Then he placed
the iron kettle, filled with fresh water from a porcelain jar, over the
coals, and showed us how to fold the square of purple silk and wipe
each article of the tea-service, how to scald the bowl, and to rinse
the bamboo whisk. For cha no yu, tea-leaves are pounded to a fine
powder, one, two, or three spoonfuls of this green flour being put in
the bowl, as the guests may prefer a weak or a strong decoction.
Boiling water is poured on the powder, and the mixture beaten to a
froth with the bamboo whisk. This thick, green gruel, a real purée of
tea, is drank as a loving-cup in the usu cha ceremony, each one
taking three sips, wiping the edge of the bowl, and passing it to his
neighbor. The measures and sips are so exact that the last one
drains the bowl. Made from the finest leaves, this beverage is so
strong that a prolonged course of it would shatter any but Japanese
nerves.

MATSUDA, THE MASTER OF CHA NO YU

It is in the precise management of each implement, in each


position of the fingers, in the deliberation and certainty of each
movement, that the art of cha no yu lies, and its practice must be
kept up throughout the lifetime of a devotee. Even with all the
foreign fashions, the old ceremonial rites are as much in vogue with
the upper classes as ever, and the youth of both sexes are carefully
trained in their forms.
Much less pretentious and formal are the eel dinners with which
Japanese hosts sometimes delight their foreign friends, as well as
those of their own nationality. Even Sir Edwin Arnold has celebrated
the delights of eels and rice at the Golden Koi, and there are other
houses where the delicious dish may be enjoyed. When one enters
such a tea-house, he is led to a tank of squirming fresh-water eels,
and in all seriousness bidden to point out the object of his
preference. Uncertain as the lottery seems, the cook, who stands by
with a long knife in hand, quickly understands the choice made, and
seizing the wriggling victim, carries it off to some sacrificial block in
the kitchen. An eel dinner begins with eel-soup, and black eels and
white eels succeed one another in as many relays as one may
demand. The fish are cut in short sections, split and flattened, and
broiled over charcoal fires. Black eels, so called, are a rich dark
brown in reality, and the color is given them by dipping them in soy
before broiling; and white eels are the bits broiled without sauces.
Laid across bowls of snowy rice, the eels make as pretty a dish as
can be served one, and many foreigners besides the appreciative
English poet have paid tribute to their excellence. An eel dinner in a
river-bank tea-house, with a juggler or a few maiko to enliven the
waits between the courses, is most delightful of Tokio feasts.
CHAPTER X
THE JAPANESE THEATRE

“Saturated with the refinements of an old civilization,” as Dr.


Dresser says, and possessing all other arts in perfection, it is not
surprising that the Japanese drama should be so well worthy of its
people. The theatre has reached its present development slowly and
with difficulty. Caste distinctions hindered its rise, actors ranking
next the eta, or outcast class in feudal days, and the play-houses of
such degraded beings lying under ban. Only the middle and lower
classes patronized them, nobles never attending any public
exhibitions, and all women being excluded.
In the golden age of the Tokugawas the drama began to win
recognition; theatres were built by the Shogun; the marionette
shows, the first departure from the No Kagura, gave way to living
actors and realism succeeded. In the great social upheaval and
rearrangement of classes following the Restoration, actors rose a
little in social esteem and gained some rights of citizenship. But
another quarter of a century will hardly rank the dramatic with the
other arts and honor its interpreters. Noblemen now attend the
theatre, but actors never receive an invitation to their clubs. A few
years since, Tokio founded an association for the improvement of the
theatre, and the development of the histrionic art of the country in
its own distinctive way. Viscount Hijikata and Viscount Kawawa were
elected president and vice-president of this Engei Kyokai, but little is
known of its actual work.
Instead of farce or recitative prologue preceding the play, come
one or two acts of classic pantomime or character dance, or an
interlude of this kind in the middle of the drama. These classic
pantomimes resemble the No Kagura simplified.
This No dance, or lyric drama, is the dramatic form current before
the seventeenth century. Bordering on the religious, it suggests the
Greek drama, and the passion and miracle plays of mediæval
Europe. Originally, the No was the pantomime festival dance of the
Shinto temples, fabled to have been first performed by Suzume
before the cave of the Sun Goddess. The sacred dance is still a
temple ceremonial, and the dances of the Shinto priestesses at Nikko
and Nara are famous. In time the No became the entertainment of
honor in the yashikis of the great, and princes and nobles took part
in the solemn measures when greater princes were their guests. To
the slow and stately movements of the dancers, and their play with
fan and bells, dialogue was added, and an exaggeration of detail and
etiquette.
The No is wholly artificial, the movements of the actors being as
stiff, stilted, and measured as the classic idiom in which the dialogue
is spoken, and the ancient and obsolete ideographs which set forth
the synopsis of the action. Confined to the yashikis and monasteries,
the No was the entertainment of the upper classes, who alone could
understand its involved and lofty diction and intricate symbolism.
While the bare arguments of plays and dances are as familiar as
fairy tales or folk-lore, only scholars of great attainments can read
their actual lines, and the full translation of a No programme for the
Duke of Edinburgh, on his visit to Japan, busied the interpreters of
the British Legation for days, with the aid of all the old native poets
and scholars in Tokio.
The No is a trilogy, occupying four or five hours of three
successive days. The first set of scenes is to propitiate the gods; the
second to terrify evil spirits and punish the wicked; and the third to
glorify the good, beautiful, and pleasant. The dramatis personæ are
gods, goddesses, demons, priests, warriors, and heroes of early
legend and history, and much of the action is allegorical. By a long
gallery at the left the actors approach the elevated pavilion or
platform of the stage, which is without curtain or scenery, and
almost without properties. The audience sits upon the matted area
surrounding the three sides of the stage. Flute, drum, and pipes play
continuously, and a row of men in old ceremonial dress sit
statuesque at one side of the stage, chanting and wailing the
explanatory chorus throughout the performance. In the great scenes
the actors wear masks of thin lacquered or gilded wood, and
valuable collections of such ancient dance masks are preserved in
temples and yashikis. The costuming is superb, the old brocade and
cloth-of-gold garments showing the court costumes of centuries ago,
and the great families and monasteries hold their ancient No
costumes as chiefest treasures.
The actors enter at a gait that out-struts the most exaggerated
stage stride ever seen, the body held rigid as a statue, and the foot,
never wholly lifted, sliding slowly along the polished floor. These
buckram figures, moving with the solemnity of condemned men,
utter their lines like automata, not a muscle nor an eyelash moving,
nor a flicker of expression crossing the unmasked countenance.
Their tones are unspeakably distressing, nasal, high-pitched, falsetto
sounds, and many performers have ruined and lost their voices, and
even burst blood-vessels, in the long-continued, unnatural strain of
their recitatives. The children who take part equal the oldest
members in their gravity and woodenness. In some delightful scenes
the demons, with hideous masks and abundant wigs of long, red-silk
hair, spread deliberate and conventional terror among the buckram
grandees, and, stamping the stage wildly, leaping and whirling,
relieve the long-drawn seriousness of the trilogy. It is only when the
performers are without masks that the scene is recognized as
intentionally a light and amusing farce, while the roars of the
audience are elicited by stately, ponderous, and time-honored puns,
and plays upon words that a foreigner cannot appreciate.
Fine representations of the No may be seen at the Koyokwan club-
house in Tokio, and in the audiences one beholds all the
bureaucracy, the court circles, and a gathering of aristocratic families
not elsewhere to be encountered.
The existing theatre and the legitimate drama are not yet three
centuries old, and the name shibai, meaning turf places, or grass
plot, implies the same evolution from out-door representations that
the occidental drama had. There is no Shakespeare, nor Corneille,
nor, indeed, any famous dramatist, whose works survive from an
earlier day, to align the stage with literature and make its history.
Authorship is rarely connected with the plays, and authors’ royalties
are unknown. Many of the novels of Baku have been dramatized, but
most often anonymously. Plays are usually written in the simpler
hirakana, or running characters, in which light romances and books
for women are written, and this fact alone shows the esteem in
which dramatic literature is held. Incidents in history, lives of
warriors, heroes, and saints furnish themes for the drama, and all
the common legends and fairy tales are put upon the stage. That
great classic, the affecting history of the “Forty-seven Ronins,” is
always popular, and the crack-brained heroisms of the days of
chivalry fire the Japanese heart notwithstanding its passion for the
foreign and modern. The trials, tortures, and miracles of the early
days of Buddhism, and the warlike histories of the great feudal
houses, furnish tragedies and sensational and spectacular plays
without end. There are, also, romantic melodramas, emotional
dramas, and comedies of delicious humor and satire.
New plays, while rare, are not theatrical events, and first nights by
no means indicate success or failure. The play is tried on the
audience, changed, cut, and altered as actors, manager, scene-
painter, carpenter, and patrons desire, without consideration of the
author’s rights or feelings.
I once asked a great star who had written his play.
“I do not understand,” said the tragedian; and a bystander
explained that the manager had cut reports of a theft, a murder, and
a shipwreck from a newspaper, and, discussing them with the star,
evolved the outlines of a connected play and decided on the
principal scenes and effects. A hack writer was then called in, who,
under dictation, shaped the plot and divided it into scenes. The
managerial council elaborated it further, allotting the parts, and the
star then composed his lines to suit himself. In rehearsal the play
was rounded, the diction altered, and each actor directed to write
out his own part, after which a full transcript was made for the
prompter.
As to the authorship of the play of the “Forty-seven Ronins,” he
said: “That is our country’s history. We all know the story of their
lives and glorious deaths, and many novelists and poets have written
of them.”
“But who made it into a drama?”
“Oh, every theatre has its own way of representing the different
scenes, although the great facts are historical and cannot be
misrepresented, now that the Tokugawa’s ban against the play is
removed. Danjiro plays it in one way, and other actors have their
versions, but none of them play it the same at every engagement,
nor repeat just the same acts on every day of an engagement.”
With dramatic authorship so vague and uncertain, the origin or
author of any play is far to seek. Revivals and rotations of the old
favorites constitute a manager’s idea of attractions, a new scene or
two, a novel feature, and some local picture or allusion being
enough to satisfy the most blasé patron. No accurate libretto nor
printed book of the play can thus exist, but the illustrated
programmes give a pictorial outline of it—a veritable impressionist
sketch, noting its salient features, and leaving all details to time and
imagination. There are no dramatic unities, no three-act or five-act
limitations, and no hampering laws of verse and rhythm. An
orchestra and half-concealed chorus explains, heralds, and lauds the
action, a survival of the No gradually disappearing with other things
before the demand for shorter hours and briefer plays.
Women do not appear on the Japanese stage, female parts being
played by men, who often make these roles their specialty,
cultivating and using their voices always in a thin, high falsetto. The
make-up, the voices, gait, action, and manner of some of these
actors are wonderful, and Genoske, the greatest impersonator of
female characters, when dressed for the part of some noble heroine,
is an ideal beauty of the delicate, aristocratic type. Outside the great
theatres, in plays and side-show entertainments, that may be
compared with our dime museums, a woman is occasionally found
on the stage; and, a few years ago, a Tokio manager amazed the
town with the performances of a company made up entirely of
women. In the interludes, where jugglers and acrobats entertain the
audience, women are sometimes seen, and, in time, plays will be
cast for both sexes, and female stars will shine. The infant prodigy is
known to the Japanese stage, and in some wonderfully pretty and
affecting scenes in the “Ronins” little children utter their lines and go
through their parts with great naturalness.
The great theatre of Tokio is the Shintomiza, a long, gabled
building, ornamented above the row of entrance doors by pictures of
scenes from the play. The street is lined with tea-houses, or
restaurants, for a play is not a hap-hazard two-hour after-dinner
incident. A man goes for the day, carefully making up his theatre
party beforehand, the plays generally beginning at eleven o’clock in
the morning, and ending at eight or nine in the evening. After a
short run the hours during which the great actors appear and the
great stage effects are made become known, and the spectator may
time his visit accordingly. It is bad form for a Japanese of position to
go to the theatre door, pay for a box, and enter it. He must send a
servant, at least a day beforehand, to one of the tea-houses near
the theatre to engage its attentions for the day, and through its
agency secure a box. The tea-house people are the ticket
speculators in league with the box-office. At the proper hour, the
party assemble at the tea-house, and give orders for the lunch,
dinner, and frequent teas to be served during the day. The tea-house
attendants conduct them to their box, and at each intermission
come to see what is wanted, bringing in at the dinner-hour the large
lacquer chow boxes with their courses of viands, that their patrons
may dine comfortably where they sit. Everybody smokes, and each
box has its little tabako bon, with its cone of glowing coals to light
the tiny pipes, the rat-tat of the pipes, as the ashes are knocked out,
often making a chorus to the action.
Theatre buildings are light and flimsy wooden structures, with
straw-mats and matting everywhere. They are all alike—a square
auditorium with a sloping floor, a single low gallery, and a stage the
full width of the house. The floor space is divided into so-called
boxes by low railings, that serve as bridges for the occupants to pass
in and out. Visitors always sit on the floor, each box being six feet
square and designed for four people. The gallery has one row of
boxes at either side, several rows facing the stage, and behind them
a pen, where the multitude stand and listen, paying one or two
coppers for each act. This gallery of the gods is called the “deaf
seat,” but the deaf hear well enough to be vociferous. The theatre-
goer takes a check for his shoes, and racks hanging full of wooden
clogs are the ornaments of the foyer. Within the building are booths
for the sale of fruits, tea, sweets, tobacco, toys, hair-pins,
photographs of the stars, and other notions, so that a box-party
need not leave the house in pursuit of any creature comforts. The
ventilation is too good, and the light and open construction invites
wintry draughts.
Charges are made in detail, and the following is one bill presented
for a party of seven at a Yokohama theatre. No charge was made for
the two family servants, who came and went at will.

Admission (seven persons) $ 98


Box 1.60
Carpeting, chairs, etc. 50
Messenger hire 10
Tea and confectionery 30
Persimmons, figs, and grapes 30
Eels and rice, etc. (seven persons) 3.50
Tea-house 1.00
Presents to servants 30
$8.58

Received payment,
Fukkuya.

There is always a drop-curtain, generally ornamented with a


gigantic character or solitary symbol, and often nowadays covered
with picturesque advertisements. Formerly, so much of the play was
given by day that no footlights and few lamps were used. In those
good old days a black-shrouded mute hovered about each actor after
dark, holding out a candle at the end of a long stick to illuminate his
features, that the audience might see the fine play of expression.
With the adoption of kerosene the stage was sufficiently lighted, and
the Shintomiza has a full row of footlights, while the use of electricity
will soon be general. The black mutes act as “supers” throughout all
plays where changes are made or properties manœuvred while the
curtain is up.
The actors enter the stage by two long, raised walks through the
auditorium, so that they seem to come from without. These raised
walks, on a level with the stage and the heads of the spectators in
the floor boxes, are called the hana michi, or flower-walks, and as a
popular actor advances his way is strewn with flowers. The exits are
sometimes by the hana michi and sometimes by the wings,
according to the scene.
The miniature scale of things Japanese makes it possible to fill a
real scene with life-like details. The stage is always large enough for
three or four actual houses to be set as a front. The hana michi is
sufficiently broad for jinrikishas, kagos, and pack-horses, and with
the illumination of daylight the unreality of the picture vanishes, and
the spectator seems to be looking from some tea-house balcony on
an every-day street scene. Garden, forest, and landscape effects are
made by using potted trees, and shrubs uprooted for transplanting.
The ever-ready bamboo is at hand and the tall dragon-grass, and
the scene-painters produce extraordinary illusions in the
backgrounds and wings. Some of the finest stage pictures I have
seen were in Japan, and its stage ghosts, demons, and goblins
would be impossible elsewhere. In the play of “Honest Sebi” there
was a murder scene in a bamboo grove in a rainy twilight that
neither Henry Irving nor Jules Claretie could have surpassed; and in
“The Vampire Cat of the Nabeshima,” or “The Enchanted Cat of the
Tokaido,” a beautiful young woman changed, before the eyes of the
audience, to a hideous monster, with a celerity more ghastly than
that which transforms Dr. Jekyll into Mr. Hyde.
Japanese theatres use the revolving stage, which has been their
original and unique possession for two centuries. A section of the
stage flooring, twenty or thirty feet in diameter, revolves like a
railway turn-table, on lignum-vitæ wheels, moved by coolies below
stairs, who put their shoulders to projecting bars, as with the silk-
press. The wings come to the edge of this circle, and at a signal a
whole house whirls around and shows its other rooms or its garden.
Sometimes the coolies turn too quickly, and the actors are rolled out
of sight gesticulating and shouting. The scenery is painted on wings
that draw aside, or on flies hoisted overhead. Curiously enough, the
signal for opening the curtain is the same as that used at the
Comédie Française—three blows on the floor with a big stick.
The Japanese theatre of to-day is given over to realism and the
natural school, and Jefferson and Coquelin are not more quietly,
easily, and entirely the characters they assume than Danjiro, their
Japanese fellow-Thespian. The play is a transcript of actual life, and
everything moves in an every-day way, though Japanese manners
and customs often seem stilted, artificial, and unnatural to the
brusque Occidental, with his direct and brutally practical etiquette.
Pathos is always deep and long drawn out, and the last tear is
extracted from the eyes of audiences quick to respond to emotional
appeals. Tragedies are very tragic and murders very sanguinary.
Death is generally accomplished by edged tools, and the antics of
the fencers, the wonderful endurance of the hacked victims, and the
streams of red paint and red silk ravellings that ooze forth delight
the audiences, who shout and shriek their “Ya! Ya!” and “Yeh! Yeh!”
The swordsmen are often acrobats and jugglers in disguise, who
enliven the extended slaughters with thrilling tours de force.
Seppuku, the honorable death, or hara-kiri as it is most commonly
known, is always received with breathless interest and wild
applause, and the self-disembowelling of the hero, with a long last
oration, still seems to the Japanese something fine and heroic and
the most complete revenge upon an insulting foe.
The detail and minuteness with which everything is explained, and
the endless etiquette and circumlocution, are thoroughly Japanese.
Little is left to the imagination in their dramatic art, and an ordinary
play has more sub-plots and characters than one of Dickens’s novels.
With the rapid adoption of new customs, the theatre is becoming the
only conserver of the old life and manners.
If the Japanese stage has its blood-and-thunder and its tank
drama, it has also its millinery play. The costumes alone are often
worth going to see, and the managers announce the appearance of
historic brocades and armor worthy of museums. Danjiro owns and
wears a sacred coat of mail that belonged to one of the Ronins, and
his appearance in it is the signal for the maddest applause. Such
treasures of costume and of armor are bequeathed from father to
son, and from retiring star to favorite pupil. As tokens of high
approval rich and noble patrons send to actors rare costumes,
swords, pipes, and articles of personal use. Excited spectators even
throw such tributes upon the stage. One approving foreigner, seeing
the rain of hats, coats, obis, and tobacco-pouches, once tossed his
hat down. Later the manager and the actor’s valet returned the hat
and asked for ten dollars, as those seeming gifts from the audience
were merely pledges or forfeits, to be afterwards redeemed by
money under the star’s regular schedule of prices. As protests
availed nothing, and the whole house only roared in derision when
he said that he had wished Danjiro to keep the battered derby as a
souvenir, the enthusiast paid his forfeit.
DANJIRO, THE GREAT ACTOR

The audience is as interesting a study as the players, each little


square box being another stage, whereon the picturesque drama of
Japanese life is enacted. Trays of tea and sweetmeats and single
teapots are constantly supplied to the spectators by attendants, who
tread the narrow partition rails between the boxes like acrobats.
Whenever the curtain closes there is a swift scurrying of these
Ganymedes to the boxes, while the children climb upon the partition
rails and the hana michi, or run about the theatre, even romping
upon the stage itself, and peeping under the curtain to see what the
carpenters are hammering; all with perfect ease and
unconsciousness.
Visiting the star in his dressing-room is a simple commercial
transaction. The actors make a fixed charge for receiving such visits,
deriving a regular income from this source. Danjiro’s dressing-room
is high up among the flies back of the Shintomiza stage, with a
window looking down upon it, so that he needs no call-boy. He often
shouts down to the stage himself, and has the action of the play
delayed or hastened, according to his toilet or his humors. Nothing
could be more scornful and indifferent than Danjiro’s treatment of
the high-priced visitors to his dressing-room. Fulsome flattery, if
offered with the florid and elaborate Japanese forms, will mollify
him, and the old fellow—eighth idolized Danjiro in succession—will
finally offer tea, present a hair-pin to a lady, or write an autograph
on a fan in his most captivating stage daimio manner. When making
up for a part, the great actor sits on the mat before a large swinging
mirror. Except for a character face little disguise is used, as daylight
spoils its effect. Three or four meek valets wait upon this spoiled and
whimsical old autocrat, and the whole theatre staff attends. The
value of his wardrobe, kept in immense covered bamboo baskets, is
very great, and its care a serious matter. Part of it was once stolen,
and when the whole Tokio police force succeeded in restoring it
Danjiro announced that he could never again wear what the touch of
a thief had defiled.
Genoske, fourth of his name and line, and Sodanje, a cousin of
Danjiro, equally prove the heredity of Japanese genius, and are
favorites of the Tokio public. Young actors pay the great stars for the
privilege of joining their companies, and studying their methods.
Danjiro is said to receive three thousand dollars from the Shintomiza
theatre for the year or season, which lasts from early fall until after
the cherry blossoms. His connection with the Shintomiza is like that
of a sociétaire with the Comédie Française. Yet he plays in other
Tokio theatres, has filled engagements in other cities, and
everywhere receives from perquisites, fees, and gifts more than the
amount of his salary.
The Japanese artist is fully aware of the aid ingenious advertising
may lend to genius. Drawing-room engagements do not yet
contribute a part of the income of a great actor; but such a one was
once brought to drink tea at a foreign house, and obligingly recited
from his great roles, and through the interpreter, talked most
interestingly to us of his art and stage business. In a few days the
native newspapers, the vernacular press, as the British dailies term
it, contained accounts of a great entertainment offered this favorite
actor by some foreign residents, and the simple afternoon tea of six
people was lost to view in the description of the elaborate banquet
and attending crowd.
The Government exercises a certain censorship of the stage, as of
the press, suppressing an obnoxious play, and arresting manager
and company if necessary. No allusions to present political events
are allowed, and the authorities permit the expression of no
disturbing ideas. The Tokugawas exercised this censorship towards
the play of the “Forty-seven Ronins,” because its main argument and
many of its scenes reflected too clearly the corrupt practises of the
Shogun’s court. Even its name was changed, and, until the
Restoration, it was presented as the Chiushingura (Loyal League),
and the scenes strayed far from historic fact. Since the new era,
managers advertise their representations as most closely following
the actual records, and every fresh contribution from historian or
antiquarian is availed of.
CHAPTER XI
THE IMPERIAL FAMILY

European sovereigns and reigning families are parvenus compared


to the ruler and the imperial house of Japan, which shows an
unbroken line from the accession of Jimmu Tenno, the first Emperor
in 660 b.c., down to the present son of Heaven, Mutsu Hito, one
hundred and twenty-first Emperor of his line.
During the feudal period, the Emperors, virtually prisoners of their
vassals, the Shoguns, lived and died within the yellow palace walls of
Kioto, knowing nothing of their subjects, and unknown by them.
After death, each was deified under a posthumous appellation, and
there his history ceased. Too sacred a being to be spoken of by his
personal name, at the mention of his title all Japanese make an
unconscious reverence even now. When his patronymic was written,
it was purposely left incomplete by the omission of one stroke of the
writing-brush. In the spoken language, the ruler is the Shujo, the
Heika, or the Tenno, while in the written language he is the Tenno,
the Kotei, or the Mikado. The Empress is the Kogo in both the
spoken and the written language, and the honorific sama follows all
of these imperial appellations.
Mutsu Hito, the most significant figure in Japanese history, was
born in the Kioto palace, November 3, 1852, and, taught and trained
as imperial princes had been before him, succeeded to the throne
after the death of his father, February 13, 1867. In the following
autumn the Shogun sent in his formal resignation, gave back the
supreme power to the rightful ruler, and retired to Osaka. In
February, 1868, the Emperor, not yet sixteen years of age, received
the foreign envoys in the Kioto palace with uncovered face; then,
defeating the rebellious Shogun at Osaka, removed his capital to
Yeddo, and chose the name Meiji (enlightenment), to designate the
era of his reign.
As seen at the rare court functions, at military reviews, and races,
the Emperor is easily the central figure. Taller than the average of
his race, and possessing great dignity and majesty, his slow, military
step and trailing sword effectually conceal the unequal gait
rheumatism sometimes obliges. He wears a trimmed beard, and his
features, more decided and strongly marked than is usual with the
aristocratic type of Japanese countenance, wear a calm and
composure as truly Oriental as imperial. In public he wears the
uniform of generalissimo of the army, a heavily-frogged and braided
one of dark-blue broad-cloth in winter, and of white duck in summer,
with a gold-mounted sword and many decorations. In recognition of
the honors and orders conferred upon him by other royalties, the
Emperor bestows the cordon and jewel of the princely Order of the
Chrysanthemum. The Order of the Rising Sun is given for merit and
distinguished services, and its red button is worn by many foreigners
as well as natives.
Of late, the Emperor has abandoned his attempts to learn English
and German, and relies upon interpreters, but he reads translations
of foreign literature with great interest. When he passes through the
streets, he is received with silent reverence, an advance guard of
police and a body-guard of lancers escorting him. While his own
people never shout or cheer, he accepts very graciously the foreign
custom, and bows an acknowledgment to the hurrahs that
sometimes greet him at Yokohama. While the Emperor has been
absorbed in the changing affairs of state during the two decades of
his reign, he still seems, in comparison with European sovereigns, to
dwell in absolute quiet and seclusion. Often, for weeks together, he
remains within the palace grounds, where he has riding courts,
archery, and rifle ranges, well-stocked fish-ponds, and every means
of amusing himself. Disliking the sea, he has no yacht, a chartered
mail-steamer or man-of-war carrying him to naval stations or new
fortifications, when the railroad is impracticable. His mountain
palaces and remote game preserves he never visits.
Immediately after establishing his court at Yeddo, the boy-
Emperor returned to Kioto to wed Haruko, daughter of Ichijo
Takada, a kugé, or court noble of the highest rank. The marriage
was solemnized by some Shinto ceremony within the temple of the
palace, a ceremony so sacred and private that no Japanese even
conjectures its form.
The Empress Haruko, born May 29, 1850, was educated in the
strictest conventions of old Japan, and taught only the Chinese
classics, her own literature and poetic composition, the use of the
koto, the forms of cha no yu, needle-work, and the arrangement of
flowers—a broad and most liberal education for a maiden even of
high degree.
Upon her marriage, an extraordinary life opened before the little
Empress, demanding a very unusual activity and study, courage,
adaptiveness, and comprehension. She is poetic as well as practical,
and her poems are not only traced on imperial screens and
kakemono in autograph characters, but several of them have been
set to music as well.
Even now, her Majesty is more delicately pretty than her younger
sisters, although for years an invalid. She is short in stature, slender,
and small, with the long, oval face and refined features of the ideal
aristocratic type of Japanese beauty. At her marriage, she shaved
her eyebrows, painted two shadowy suggestions of them high up on
her forehead, and blackened her teeth, in accordance with Japanese
custom; but after a few years, she ceased to disfigure herself in this
way. It was an event, in 1873, when she gave her first audience to
the envoys’ wives. It cost the court chamberlains months of study to
arrange for the appearance of the Emperor and Empress together, to
reconcile the pretensions of their suites as to rank and precedence,
and to harmonize the Occidental, chivalrous ideas of deference to
women with the unflattering estimate of the Orient. When, on the
day of the declaration of the new constitution (February 11, 1890),
the Emperor and Empress rode side by side in the same state
carriage through the streets of Tokio, and when, that night, he
offered his arm to lead her to a twin arm-chair in the state dining-
hall, a new era was begun in Japanese history.
The Empress has her secretaries and readers, and gives a part of
each day to informal audiences. She visits her schools and hospitals,
and makes liberal purchases at charity bazaars. She exercises in the
saddle within the palace grounds, and drives in a brougham with
half-drawn curtains, her men on the box wearing a dark-blue livery
with red cords and facings, silver buttons, and cocked hats.

IN THE PALACE GARDENS

One of the two annual imperial garden-parties is given when the


chrysanthemums are in bloom, and the other at the time of the
cherry blossoms. The etiquette of these is quite simple, although an
appearance at one is still equivalent to a presentation at court. A few
days before the festivity each guest receives a large
chrysanthemum-bordered card:

November —, ⸺.
By order of their Majesties, the Emperor and Empress, the
Minister of State for the Household Department presents his
compliments to ⸺, and asks their company at the
“Chrysanthemum Party” at the garden of the Imperial
Temporary Palace on the 8th inst., at 3 o’clock in the
afternoon.

On an accompanying slip are these instructions:

Frock-coat required.
To alight at the “Kurumayose” after entering the palace gate.
This card to be shown to officers in attendance on arrival.
No party to be held if the day happens rainy.

The guests having assembled in the gardens at the hour indicated,


the Kimigayo, or national anthem, announces the approach of the
imperial personages. The Emperor, the Empress, and their suite,
passing between the rows of guests and the flower-tents, lead the
way to marquees on the lawn, where a collation is served, the
Emperor addressing a few remarks to the ministers and envoys as
he greets them. Sometimes special presentations are made to him
and the Empress, and often the Empress summons an envoy’s wife
or a peeress to her, while she sits at table. After another tour of the
flower-tents, the company, following the imperial lead, desert the
gardens. Calls of ceremony must be made upon the wife of the
premier within one week after these parties.
When the Empress and her ladies wore the old dress the garden-
parties at the palace were wonderfully picturesque and distinctly
Japanese. It was my good fortune to attend the chrysanthemum fête
of 1885, when the Empress and her suite made their last
appearance in the red hakama and loose brocade kimonos of the old
regime. The day was warm, with the brilliant autumnal tints peculiar
to Japan, clear and sunny. There were rows of chrysanthemum beds
in the Asakasa gardens, shielded from sun and wind by matted
awnings, screens, and silk hangings, and all the myriad flowers were
at one even and perfect period of unfolding. Under silk tents by
themselves stood single plants bearing from two hundred to four
hundred blossoms each, every blossom full and symmetrical.

IN THE PALACE GARDENS

The peeresses waiting in that sunny garden were most brilliant


figures, rivalling the glow of the flowers in their splendid old brocade
robes. At last came the Empress and the whole gorgeous train of her
attendants, following the shore of the mirror-like lake, past camellia
hedges to the esplanade of the upper garden of the great Asakasa
park. As the Emperor was housed by illness, the Empress, for the
first time, conducted a general court ceremony alone. Her costume
consisted of the loose hakama, or divided skirt, of the heaviest
scarlet silk, under a long loose kimono of dull heliotrope, brocaded
with conventional wistarias and the imperial crests in white. No outer
obi, or sash, was worn, and the neck was closed high with surplice
folds of rainbow-tinted silks. Many under-kimonos of fine white and
scarlet silk showed beneath the long, square sleeves of the heavy
brocade kimono. The imperial hair was stiffened into a thin halo
behind the face, falling thence to the waist, but tied here and there
with bits of silky white rice-paper, like that of a Shinto priestess.
Above her forehead shone a little golden ornament in the shape of
the ho-o, or phœnix, and she carried a parasol and an old court fan
of painted sticks of wood, wound with long cords of many-colored
silks. The dignity and majesty of the little woman were most
impressive. Every head bowed low, and when she had passed eyes
were lifted to her reverently and admiringly. All the princesses and
peeresses following her wore a similar costume, many of their
brocade kimonos being stiffened with embroidery and gold thread,
and making dazzling effects of color. When, in the brilliant sunset
flush, the imperial train retraced its steps, its kaleidoscopic flashes of
white and gold and color reflected in the still lake, and showing
vividly as the ladies formed in a semicircle on the lawn, while the
Empress withdrew to her apartments, there ended a series of
pictures so beautiful that they seemed an illusion of the imagination.
Before the following April Paris fashions had set in with great rigor,
and all the soft, pink reflections from the clouds of cherry blossoms
in the Hama Rikiu palace garden could not give the groups of little
women in dark, ugly, close-fitting gowns any likeness to the beautiful
assemblages of other years. Gone were poetry and picturesqueness.
Progress and Philistia were come. Except for the costumes of the
Chinese and Korean legations, and that of the Chinese Minister’s
wife, with its cap-like ornaments of filigree and pearls, and tiny
jewelled slippers, nothing Oriental or Asiatic in aspect remained to
that court gathering.
The Empress ordained and defended this change of dress in a
famous court circular, whose chief argument seemed to be that the
alteration from the sitting and kneeling etiquette of the Orient to the
standing etiquette of the Occident required western fashions for
women as well as men. Every lover of the picturesque protested, but
it was suspected that this manifesto was a shrewd political move of
Count Ito’s to convince the treaty powers that the Japanese do not
differ from other civilized people. Should the sacrifice of the old life
and the beautiful national dress help to secure for Japan a revision
of the shameful and unjust treaties forced upon her from 1854 to
1858, and promote the political liberty and commercial prosperity of
the country, the Empress’s patriotic iconoclasm may be justified.

IN THE PALACE GARDENS

The sacredness of the imperial person long postponed her


Majesty’s change of fashion, as no ignoble dress-maker could be
allowed to touch her. Countess Ito, the clever wife of the premier,
and leader of foreign fashions at court, was finally chosen as lay
figure, to be fitted until a model could be made. The Empress now
wears European dress altogether, conduct little short of heroic for
one accustomed only to the loose, simple, and comfortable garments
of her country. Her gowns are made of Japanese fabrics, and a lace
school under her patronage supplies her with flounces and
trimmings. At in-door state ceremonies, low bodices and court trains
are prescribed, and the Empress wears a tiara, rivière, and
innumerable ornaments of diamonds. The court ladies, who formerly
wore no ornaments but the single long hair-pin and the gold balls
and trifles on the obi cord, have been seized by a truly American
craze for diamonds, and greatly covet the new Order with cordon
and jewelled star lately established by the Empress.
In adopting the expensive foreign dress court ladies ruthlessly
sacrificed irreplaceable heirlooms of rich old brocades and
embroideries. For a long time their countenances and mien betrayed
the discomfort of the new dress, but they soon acquired ease with
familiarity, and no Japanese woman, in her first Parisian gown, was
ever such a burlesque and caricature as are the foreign visitors who
essay the kimono, and, blind to the ridiculous, are photographed
with its folds and fulness all awry. Only two foreign women have I
ever seen who could wear Japanese dress gracefully in the Japanese
way, with full regard to the meaning which each color, fold, pucker,
and cord implies.
Asahiko, the Empress Dowager, one of the Kujo family of kugés,
and of Fujiwara descent, maintained the old order and etiquette and
made few concessions to the new ways. She never appeared at
state functions, but the ladies of her suite, in beautiful ceremonial
dresses, were sometimes seen at Koyokwan No performances, when
given for one of her state charities. She spent half the year at her
summer palace at Hayama, and at her death in January, 1897, was
buried beside the Emperor Komei at the Senyuji temple in Kioto with
a midnight Shinto service. The most rigorous court mourning was
observed for one year, even military bands being forbidden to play.
The Empress Dowager had nominal charge of the imperial
nurseries in the Nakayama Yashiki, where the children of the
Emperor and his inferior wives remain until their fourth or fifth years.
These wives are all of kugé birth, and have establishments within
the palace enclosure. They are an Oriental survival, of which little is
said or definitely known, although they still have a fixed rank.
The Empress Haruko has no children, and Prince Haru, the Crown
Prince, is the son of the Emperor and Madame Yanagiwara. Five
imperial princesses are living, but ten imperial children have died.
Prince Haru was born September 6, 1879, proclaimed heir apparent
August 31, 1887, and elected Crown Prince November 3, 1889,
dispossessing as heir to the throne Prince Arisugawa Takehito, a
young cousin, who had been adopted by the Emperor in the absence
of any direct heirs. Prince Haru attended the Nobles’ school, recited
in classes with other boys, and enjoyed a more democratic life than
his ancestors could have dreamed of. He is quick, energetic, and
ambitious, progressive in all his views, enthusiastic and tireless in his
occupations. With a naturally delicate constitution, his good health
has been the unceasing object of the devoted German and Japanese
court physicians, and he has always been exempt from court
functions and the wearisome public duties of the heir apparent in
other empires. His marriage to the Princess Sada, daughter of Prince
Kujo, took place at the Imperial Palace in Tokio in May, 1900, and
the birth of Prince Michi in April, 1901, was cause of rejoicing to the
empire.
CHAPTER XII
TOKIO PALACES AND COURT

Thirty different places have been the capital and home of the
Emperors of Japan, and Omi, Settsu, and Yamashiro were imperial
provinces before the Tokugawa’s city of Yeddo (bay’s gate) became
Tokio, the eastern capital and seat of imperial power. The Shogun’s
old castle, the Honmaru, or the Shiro, was the imperial palace until
destroyed by fire in May, 1873, and its interior is said to have been
far more splendid than the Nijo castle in Kioto. The yashiki of the
Tokugawa daimio of Kiushiu, on the high ground of the Akasaka
quarter, next sheltered the imperial household, though ill adapted to
its changing and growing needs.
At the end of 1888 the Emperor took possession of the new
imperial palace, which had been six years in building, and which
stands upon the ruins of the Shogun’s castle, protected by all the
rings of moats. Two drawbridges and two ponderous old towered
gate-ways defend the entrance to the front wing of the building, a
long yellow brick edifice, with the conical towers and steep roof of a
French château. The offices of the Imperial Household Department
are assigned to this foreign wing, except for which the new structure
is such a labyrinthine collection of temple-like buildings, as the old
palace at Kioto. Built on sloping and uneven ground, there is a
constant change of level in the innumerable roofs and floors. Before
it was completed a tour of the palace occupied a full hour, and
attendants and workmen were often lost in the maze. Combining
Japanese and European architecture, decorations, furnishings, and
ideas, the palace is a jumble of unsatisfactory incongruities, nobody
being found to admire thatched roofs and electric lights, partition
walls of sliding paper screens and steam-heating apparatus, a
modern ball-room, and a No dance pavilion all side by side.
Each lofty state apartment is a building by itself, the outer
galleries on the four sides being the corridors that touch other
corridors at their angles. Plate-glass doors in maroon lacquer frames,
with superb metal mountings, take the place of the usual paper
shoji; but with the low eaves and the light entering from the level of
the floor, the rooms need all their Edison lamps. Unfortunately, the
best examples of national decorative art are not preserved in this
national palace. Only the richly panelled ceilings are at all Japanese
or worthy their place. The famous embroidered ceiling and
embroidered wainscoting in the great drawing-room, and some
makimonos in the private rooms, exhibit the best Kioto needle-work.
This wonderful ceiling, costing ten thousand dollars, is panelled with
yard-squares of gold-thread tapestry, upon which are embroidered
crest-like circles of various flowers. The wainscoting is green damask
wrought with fruits, and the walls of the drawing-room are hung
with a neutral-tinted damask.
The beautiful Japanese woods and the marvellous Japanese
carvers were set aside, that the steam factories of Hamburg might
supply the cheap and ugly oak furniture of the banquet-hall. The
state table, seating one hundred people, surrounds three sides of a
square. The imperial arm-chairs are at the middle of the board,
facing elaborate buffets, framing painted tapestry-panels of the most
tawdry German design. The ball-room has a costly inlaid floor, and is
decorated in white and gold. The throne-room has nothing Japanese
but the crests in the panelled ceiling. A large gilded arm-chair stands
on a red-carpeted dais, with canopy and curtains of red plush, the
sacred sword and seal resting on lacquer tables beside it. At court
functions the Empress stands on a dais below and to the right of the
throne, with the imperial princes and princesses grouped about her.
The members of the diplomatic corps are placed at the Emperor’s
left, the ministers and higher officials fill the space facing the throne,
and the imperial guard line the gallery corridors that surround the
throne-room.
In the private apartments of the Emperor and Empress moquette
carpets, plush furniture, and easy-chairs confess foreign influence
and etiquette. The old
rules of the simplicity of
a Shinto shrine in the
sovereign’s dwelling are
observed in leaving all
the wood-work
unpainted, while wax-
candles and open grates
replace the electric
bulbs and gilded
radiators of the official
parts of the palace.
Some of the private
rooms display exquisite
panelled and coffered
ceilings of pure white pine, or the beautiful gray bog-wood. Each
suite has one room in pure Japanese style, and a tiny box for
celebrating the rites of cha no yu with a favored four. The Emperor’s
sleeping-room is the same unlighted, unventilated dark closet which
his ancestors used. This sleeping-room is E in the accompanying
diagram, surrounded by rooms occupied at night by his attendants
and guards.
Above this floor is a suite of studies, libraries, and secretaries’
rooms, all finished in the same exquisite woods, that show their
natural grain and color. There is a separate suite of rooms for the
Emperor’s toilet and wardrobe, a robing and disrobing room, and an
exquisite Japanese bath-room with inlaid floor and walls. The
sovereign uses the regular oval wooden tub of his people, which is
filled from a well in the adjoining court by means of the primitive
bucket and rope. The screens in these private rooms are
undecorated, or at the most only flecked with gold-leaf. From time to
time, by special command, artists will decorate these, and squares of
colored paper put here and there upon them invite the autograph
poems of the tea-drinking improvisators.

You might also like