3 Star 2 Fork 0

Bytom Blockchain/bmips

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
bmip-0072.mediawiki 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
langyu 提交于 2018-12-14 14:10 . Update bmip-0072.mediawiki

  BMIP: 72
  Layer: Applications
  Title: bytom: uri extensions for Payment Protocol
  Author: James Zhu <[email protected]> Lang Yu <[email protected]>
  Comments-Summary: No comments yet.
  Comments-URI: https://github.com/bytom/bmips/wiki/Comments:BMIP-072
  Status: Draft
  Type: Meta
  Created: 2018-11-06

Abstract

This BMIP describes a payment protocol that addresses the need for short URLs when scanning from QR codes.

Motivation

The payment protocol augments the bytom: uri scheme with an additional "payment" parameter that specifies a URL where a payment request can be downloaded. This creates long URIs that, when rendered as a QR code, have a high information density. Dense QR codes can be difficult to scan resulting in a more frustrating user experience. The goal is to create a standard that would allow QR scanning wallets to use less dense QR codes.

Specification

Url scheme:

bytom:<address>?amount=<amount>&asset=<asset>&memo=<memo>
example:
bytom:bm1q3yt265592czgh96r0uz63ta8fq40uzu5a8c2h0?amount=888&asset=ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff&memo=six_god

address Bytom address for receive payment.
asset Asset ID of the payment request asset. (it can be omitted if asset is native btm)
amount Number of the asset to be paid.
memo UTF-8 encoded, plain-text note with max length of 64 characters.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/BytomBlockchain/bmips.git
[email protected]:BytomBlockchain/bmips.git
BytomBlockchain
bmips
bmips
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385