Skip to content

Instantly share code, notes, and snippets.

View jadeydi's full-sized avatar
🎯
Focusing

HunterQ jadeydi

🎯
Focusing
View GitHub Profile

Mixin Network 使用

1. App 注册以及 Mixin API 认证说明

首先在手机上安装并注册好个人的 Mixin 账户,然后访问 https://developers.mixin.one/dashboard 使用 Mixin 的摄像头扫码登录,完成 App 的注册。

注册成功 App 之后,点击相应 App 的 “Click to generate a new session”,会出现三组数据,第一行的 6 位数字是 App 自己的提现 PIN 码,第二行的 UUID 是 session ID,最后一部分 RSA PRIVATE KEY 是跟 API 进行交互时用来签名 JWT 的私钥。

API 认证方式为标准的 JWT RSA 签名,JWT claims 必须包含的信息为

@jadeydi
jadeydi / gist:799c9ec045989986eabbeefdc957befc
Created October 25, 2021 05:17
mobilecoin tx proposal
7b22696e7075745f6c697374223a5b7b2274785f6f7574223a7b22616d6f756e74223a7b22636f6d6d69746d656e74223a2235636532376235373738623532643937383231613236316466396533396534653937303563326633366236656536353233363366313235303034613835643030222c226d61736b65645f76616c7565223a223134393433333230313935343431333132353438227d2c227461726765745f6b6579223a2237383164613036363731313966323862666433306437323232613439613362373938326363633134353764643232336235333863646663346630363533343138222c227075626c69635f6b6579223a2231616131333931626466653235623464383961336163653038386165653738633932363466326531386630663431333436313839643032616133373533393030222c22655f666f675f68696e74223a22633263626632616466623965306265616665386437383638343932623233393462346630623536653765646461363335323035323935383232366234353361393632646639306335626134373262306635396538336434633264653033333637623535623561666362636436333166376135326134646636356166376230343234333538393032353238366237303034316639363966373234313538356332366334353530313030227d2c22737562616464726573735f