compiler: add CreateMultisigAccount interop
This commit is contained in:
parent
5a37201319
commit
c82b11eebe
2 changed files with 8 additions and 0 deletions
|
@ -16,6 +16,7 @@ var syscalls = map[string]map[string]string{
|
||||||
},
|
},
|
||||||
"contract": {
|
"contract": {
|
||||||
"Call": interopnames.SystemContractCall,
|
"Call": interopnames.SystemContractCall,
|
||||||
|
"CreateMultisigAccount": interopnames.SystemContractCreateMultisigAccount,
|
||||||
"CreateStandardAccount": interopnames.SystemContractCreateStandardAccount,
|
"CreateStandardAccount": interopnames.SystemContractCreateStandardAccount,
|
||||||
"IsStandard": interopnames.SystemContractIsStandard,
|
"IsStandard": interopnames.SystemContractIsStandard,
|
||||||
"GetCallFlags": interopnames.SystemContractGetCallFlags,
|
"GetCallFlags": interopnames.SystemContractGetCallFlags,
|
||||||
|
|
|
@ -27,6 +27,13 @@ func IsStandard(h interop.Hash160) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// CreateMultisigAccount calculates script hash of an m out of n multisignature
|
||||||
|
// script using given m and a set of public keys bytes. This function uses
|
||||||
|
// `System.Contract.CreateMultisigAccount` syscall.
|
||||||
|
func CreateMultisigAccount(m int, pubs []interop.PublicKey) []byte {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// CreateStandardAccount calculates script hash of a given public key.
|
// CreateStandardAccount calculates script hash of a given public key.
|
||||||
// This function uses `System.Contract.CreateStandardAccount` syscall.
|
// This function uses `System.Contract.CreateStandardAccount` syscall.
|
||||||
func CreateStandardAccount(pub interop.PublicKey) []byte {
|
func CreateStandardAccount(pub interop.PublicKey) []byte {
|
||||||
|
|
Loading…
Reference in a new issue