mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-22 19:29:39 +00:00
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": {
|
||||
"Call": interopnames.SystemContractCall,
|
||||
"CreateMultisigAccount": interopnames.SystemContractCreateMultisigAccount,
|
||||
"CreateStandardAccount": interopnames.SystemContractCreateStandardAccount,
|
||||
"IsStandard": interopnames.SystemContractIsStandard,
|
||||
"GetCallFlags": interopnames.SystemContractGetCallFlags,
|
||||
|
|
|
@ -27,6 +27,13 @@ func IsStandard(h interop.Hash160) bool {
|
|||
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.
|
||||
// This function uses `System.Contract.CreateStandardAccount` syscall.
|
||||
func CreateStandardAccount(pub interop.PublicKey) []byte {
|
||||
|
|
Loading…
Reference in a new issue