dd0768aaeb
Replace invokeID to common package and export it. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
12 lines
250 B
Go
12 lines
250 B
Go
package common
|
|
|
|
import "github.com/nspcc-dev/neo-go/pkg/interop/crypto"
|
|
|
|
func InvokeID(args []interface{}, prefix []byte) []byte {
|
|
for i := range args {
|
|
arg := args[i].([]byte)
|
|
prefix = append(prefix, arg...)
|
|
}
|
|
|
|
return crypto.SHA256(prefix)
|
|
}
|