algorand / algorand/go-algorand
Allow retrieval of the program hash as an Opcode
未关闭
new-feature-request
Team Scytale
- 主要语言
- Go
- 星标
- 1.4k
- 派生
- 537
- 平均合并
- 1 天 7 小时
- 30 天内合并 PR
- 18
描述
## Problem
Upgrade procedures for applications may require comparing the hash of some program to some known and approved (signed) hash, then allowing the upgrade.
In order for this to work, the program must be <=4k since the stack does not allow a byte string larger than 4k.
## Solution
Provide an opcode that puts the hash of the program on the stack rather than forcing the hash to be done in logic.
## Urgency
Some projects need this already.
贡献指南
评估
这个 Issue 还没有评估数据。