Skip to content

Commit

Permalink
compiler: add CreateMultisigAccount interop
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaShaleva committed Feb 19, 2021
1 parent eeb650d commit b85d4ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/compiler/syscall.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
7 changes: 7 additions & 0 deletions pkg/interop/contract/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b85d4ee

Please sign in to comment.