core: add BLS12_381 interops

This commit is contained in:
Anna Shaleva 2023-03-17 18:38:38 +03:00
parent c053f1a4af
commit 115ec4d8dd
8 changed files with 777 additions and 3 deletions

View file

@ -181,13 +181,18 @@ func (e *Executor) InvokeScript(t testing.TB, script []byte, signers []Signer) u
// PrepareInvocation creates a transaction with the specified script and signs it
// by the provided signer.
func (e *Executor) PrepareInvocation(t testing.TB, script []byte, signers []Signer, validUntilBlock ...uint32) *transaction.Transaction {
tx := e.PrepareInvocationNoSign(t, script, validUntilBlock...)
e.SignTx(t, tx, -1, signers...)
return tx
}
func (e *Executor) PrepareInvocationNoSign(t testing.TB, script []byte, validUntilBlock ...uint32) *transaction.Transaction {
tx := transaction.New(script, 0)
tx.Nonce = Nonce()
tx.ValidUntilBlock = e.Chain.BlockHeight() + 1
if len(validUntilBlock) != 0 {
tx.ValidUntilBlock = validUntilBlock[0]
}
e.SignTx(t, tx, -1, signers...)
return tx
}