ElementsProject / ElementsProject/rust-elements

Minor API pain-points

未关闭
#141 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
57
派生
40
平均合并
11 小时 58 分钟
30 天内合并 PR
1

描述

These are things that are easy to workaround downstream, but would one-liner if we had upstream support. I will update the list as I find more things:
1) Direct API for calculating assetid and token id directly from prevouts during initial issuance. This currently a multi step process which requires dealing calling the AssetId::generate_asset_entropy() API.
2) Display implementations of Explicit Asset should add the 0x01 prefix
3) Add FromStr implementation for confidential::Asset/Value/Nonce. Currently, we need to decode a bytes and call `encode::deserialize`. It would be great to have methods for a) from_slice/to_vec() b) Display/FromStr c) FromHex/ToHex.
4) Implement auto-derives for Error data structures. For example: `UnBlindError`.
5) Separate out TxOut::unblind API into two APIs. TxOut::unblind_from_prf. This will also it to re-use it for psbt logic too

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。