Skip to content

Commit

Permalink
Chore: pass contract feature down from aurora-engine-transactions cra…
Browse files Browse the repository at this point in the history
…te (#876)

## Description

This PR adds the `contract` feature to the `aurora-engine-transactions`
crate. This allows Near smart contracts using this crate to use the
`ecrecover` host function in the Near runtime to check transaction
signatures instead of relying on an implementation inside the contract.
This is important because the host function uses much less gas and
allows the smart contract to be much smaller.

## Performance / NEAR gas cost considerations

N/A

## Testing

N/A
  • Loading branch information
birchmd authored Nov 29, 2023
1 parent 528714e commit 668de1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion engine-precompiles/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ serde_json.workspace = true
default = ["std"]
std = ["aurora-engine-types/std", "aurora-engine-sdk/std", "bn/std", "evm/std", "libsecp256k1/std", "ripemd/std", "sha2/std", "sha3/std", "ethabi/std"]
borsh-compat = ["aurora-engine-types/borsh-compat", "aurora-engine-sdk/borsh-compat"]
contract = []
contract = ["aurora-engine-sdk/contract"]
log = []
error_refund = []
ext-connector = []
1 change: 1 addition & 0 deletions engine-transactions/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ hex.workspace = true
[features]
std = ["aurora-engine-types/std", "aurora-engine-sdk/std", "aurora-engine-precompiles/std", "evm/std", "rlp/std"]
impl-serde = ["aurora-engine-types/impl-serde", "serde"]
contract = ["aurora-engine-sdk/contract", "aurora-engine-precompiles/contract"]

0 comments on commit 668de1f

Please sign in to comment.