西维蜀黍

【Java】编码规范(Code Guideline)

  ...


【Blockchain】Cryptocurrency(加密货币)

  • Crypto:来自 “cryptography”(密码学),表示利用加密技术保障交易安全与匿名性。
  • Currency:货币。

所以 cryptocurrency 指的是:一种使用密码学技术支持的去中心化数字货币,例如比特币(Bitcoin)、以太坊(Ethereum)等。

  ...


【Blockchain】Cryto - Bitcoin(比特币)

Bitoin 比特币

数据结构

block header

  • version
  • hash of previous block header
  • merkle root hash
  • target
  • nonce

Block body

  • Transaction list
  ...


【Architecture】System Design - Payment System

Background

  ...


【Security】Authentication(身份认证)- JSON Web Token (JWT)

JSON Web Token (JWT) No separate storage needed Invalidation of a JWT is not easy Scaling client and server is easy Structure The three parts are encoded separately using Base64url Encoding RFC 4648, and concatenated using periods to produce the JWT: const token = base64urlEncoding(header) + '.' + base64urlEncoding(payload) + '.' + base64urlEncoding(signature) Header Identifies which algorithm is used to generate the signature. In the below example, HS256 indicates that   ...