RegisteredSNativeContracts

This commit is contained in:
Ethan Buchman
2015-07-21 13:30:24 -04:00
parent ecd231a8eb
commit ab536618e0
4 changed files with 36 additions and 22 deletions

View File

@ -11,6 +11,11 @@ import (
var nativeContracts = make(map[Word256]NativeContract)
func init() {
registerNativeContracts()
registerSNativeContracts()
}
func registerNativeContracts() {
nativeContracts[Int64ToWord256(1)] = ecrecoverFunc
nativeContracts[Int64ToWord256(2)] = sha256Func
nativeContracts[Int64ToWord256(3)] = ripemd160Func