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

Function opVMHash

protocol/txvm/crypto.go:25–31  ·  view source on GitHub ↗
(vm *VM)

Source from the content-addressed store, hash-verified

23)
24
25func opVMHash(vm *VM) {
26 f := vm.popBytes()
27 x := vm.popBytes()
28 h := VMHash(string(f), x)
29 vm.chargeCreate(Bytes(h[:]))
30 vm.push(Bytes(h[:]))
31}
32
33func opSHA256(vm *VM) {
34 a := vm.popBytes()

Callers

nothing calls this directly

Calls 5

VMHashFunction · 0.85
BytesTypeAlias · 0.85
popBytesMethod · 0.80
chargeCreateMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected