AssetID produces the ID for the asset whose issuing contract has the given ID, and that has the given optional asset tag.
(contractSeed, tag []byte)
| 45 | // AssetID produces the ID for the asset whose issuing contract has |
| 46 | // the given ID, and that has the given optional asset tag. |
| 47 | func AssetID(contractSeed, tag []byte) [32]byte { |
| 48 | h := VMHash("AssetID", append(contractSeed, tag...)) |
| 49 | return h |
| 50 | } |
| 51 | |
| 52 | func (vm *VM) peekValue() *value { |
| 53 | item := vm.peek() |