rust expr hmac sha256:验证hmac sha256生成的签名与binance.us期望的签名匹配 源码
试用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
用户评论