基于 Utxo 的加密货币使用 sha256 散列算法和 secp256k1 椭圆曲线上的 ecdsa 签名从头开始编写rust

上传者: 38334677 | 上传时间: 2022-06-11 18:06:23 | 文件大小: 22KB | 文件类型: ZIP
全部: utxo 更改为仅包含 utxo 偏移量而不是整个哈希 交易只需要一个签名,而不是对每个 utxo 输入进行签名 联网 将 pow 算法从 sha256 更改为更耐 asic 的东西。(也许是 Nerva 的算法?) 可以通过切换到 Schnorr 来提高安全性和内存 O(n) -> O(1)(因此我们可以在每个 tx 中批量签名,因为 sum(sig) 验证 sum(keys)) 基于 Utxo 的加密货币使用 sha256 散列算法和 secp256k1 椭圆曲线上的 ecdsa 签名 序列化输出/utxo 版本 -- 2 个字节 值 -- 4 个字节 所有者 -- 32 字节 序列化输入 utxo hash -- 32 bytes <-- 这是从 Sha256([utxo, blockheader, index in utxos of block]) 创建的 信号大小 -- 1 字节 签名sig 大小-- 67-70 字节 序列化交易 版本 -- 2 个字节 输入计数n -- 1 字节 序列化输入n -- 99-102 字节 输出计数z -- 1 字节 序列化输出z

文件下载

资源详情

[{"title":"( 27 个子文件 22KB ) 基于 Utxo 的加密货币使用 sha256 散列算法和 secp256k1 椭圆曲线上的 ecdsa 签名从头开始编写rust","children":[{"title":"rustcoin-master","children":[{"title":"wallet","children":[{"title":"Cargo.toml <span style='color:#111;'> 209B </span>","children":null,"spread":false},{"title":"lib.rs <span style='color:#111;'> 578B </span>","children":null,"spread":false}],"spread":true},{"title":"rust-toolchain <span style='color:#111;'> 19B </span>","children":null,"spread":false},{"title":"core","children":[{"title":"rvm","children":[{"title":"vm","children":[{"title":"instructions","children":[{"title":"mod.rs <span style='color:#111;'> 830B </span>","children":null,"spread":false}],"spread":true},{"title":"mod.rs <span style='color:#111;'> 3.37KB </span>","children":null,"spread":false}],"spread":true},{"title":"Cargo.toml <span style='color:#111;'> 110B </span>","children":null,"spread":false},{"title":"lib.rs <span style='color:#111;'> 26B </span>","children":null,"spread":false}],"spread":true},{"title":"transactions","children":[{"title":"Cargo.toml <span style='color:#111;'> 153B </span>","children":null,"spread":false},{"title":"lib.rs <span style='color:#111;'> 2.14KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"rustcoin","children":[{"title":"main.rs <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"Cargo.toml <span style='color:#111;'> 152B </span>","children":null,"spread":false}],"spread":true},{"title":"Cargo.lock <span style='color:#111;'> 28.96KB </span>","children":null,"spread":false},{"title":"db","children":[{"title":"Cargo.toml <span style='color:#111;'> 161B </span>","children":null,"spread":false},{"title":"lib.rs <span style='color:#111;'> 194B </span>","children":null,"spread":false},{"title":"store","children":[{"title":"lock.mdb <span style='color:#111;'> 8.00KB </span>","children":null,"spread":false},{"title":"data.mdb <span style='color:#111;'> 32.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"ReadMe.md <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"consensus","children":[{"title":"Cargo.toml <span style='color:#111;'> 279B </span>","children":null,"spread":false},{"title":"lib.rs <span style='color:#111;'> 8.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"Cargo.toml <span style='color:#111;'> 629B </span>","children":null,"spread":false},{"title":"chain","children":[{"title":"Cargo.toml <span style='color:#111;'> 142B </span>","children":null,"spread":false},{"title":"lib.rs <span style='color:#111;'> 253B </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 29B </span>","children":null,"spread":false},{"title":"utils","children":[{"title":"Cargo.toml <span style='color:#111;'> 236B </span>","children":null,"spread":false},{"title":"lib.rs <span style='color:#111;'> 4.27KB </span>","children":null,"spread":false}],"spread":true},{"title":"blocks","children":[{"title":"Cargo.toml <span style='color:#111;'> 220B </span>","children":null,"spread":false},{"title":"lib.rs <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明