MCPcopy Create free account
hub / github.com/chain/txvm / AssetID

Function AssetID

protocol/txvm/values.go:47–50  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 2

AssetIDFunction · 0.92
opIssueFunction · 0.70

Calls 1

VMHashFunction · 0.85

Tested by

no test coverage detected