1. 首页
  2. 数据库
  3. 其它
  4. rust expr hmac sha256:验证hmac sha256生成的签名与binance.us期望的签名匹配 源码

rust expr hmac sha256:验证hmac sha256生成的签名与binance.us期望的签名匹配 源码

上传者: 2021-04-07 11:47:07上传 ZIP文件 8KB 热度 20次
试用hmac-sha256 验证hmac-sha256板条箱是否生成与binance.us期望的签名匹配的签名。 src / main.rs: /// Test that hmac_sha256 produce the expected results /// as defined by [binance.us api docs](https://github.com/binance-us/binance-official-api-docs). use hmac_sha256::HMAC; #[macro_use] extern crate hex_literal; fn main() -> () { // Data, key and expected // from: https://github.com/binance-us/binance-official-ap
用户评论