Search in sources :

Example 1 with AccessListEntry

use of org.hyperledger.besu.evm.AccessListEntry in project besu by hyperledger.

the class TransactionEIP1559Test method buildEip1559Transaction.

@Test
public void buildEip1559Transaction() {
    final List<AccessListEntry> accessListEntries = List.of(new AccessListEntry(Address.fromHexString("0x000000000000000000000000000000000000aaaa"), List.of(Bytes32.ZERO)));
    final Transaction tx = Transaction.builder().chainId(new BigInteger("1559", 10)).nonce(0).value(Wei.ZERO).gasLimit(30000).maxPriorityFeePerGas(Wei.of(2)).payload(Bytes.EMPTY.trimLeadingZeros()).maxFeePerGas(Wei.of(new BigInteger("5000000000", 10))).gasPrice(null).to(Address.fromHexString("0x000000000000000000000000000000000000aaaa")).accessList(accessListEntries).guessType().signAndBuild(keyPair("0x8f2a55949038a9610f50fb23b5883af3b4ecb3c3bb792cbcefbd1542c692be63"));
    final BytesValueRLPOutput out = new BytesValueRLPOutput();
    tx.writeTo(out);
    System.out.println(out.encoded().toHexString());
    System.out.println(tx.getUpfrontCost());
    // final String raw =
    // "b8a902f8a686796f6c6f7632800285012a05f20082753094000000000000000000000000000000000000aaaa8080f838f794000000000000000000000000000000000000aaaae1a0000000000000000000000000000000000000000000000000000000000000000001a00c1d69648e348fe26155b45de45004f0e4195f6352d8f0935bc93e98a3e2a862a060064e5b9765c0ac74223b0cf49635c59ae0faf82044fd17bcc68a549ade6f95";
    final String raw = out.encoded().toHexString();
    final Transaction decoded = Transaction.readFrom(RLP.input(Bytes.fromHexString(raw)));
    System.out.println(decoded);
    System.out.println(decoded.getAccessList().orElseThrow().get(0).getAddressString());
    System.out.println(decoded.getAccessList().orElseThrow().get(0).getStorageKeysString());
}
Also used : AccessListEntry(org.hyperledger.besu.evm.AccessListEntry) BigInteger(java.math.BigInteger) BytesValueRLPOutput(org.hyperledger.besu.ethereum.rlp.BytesValueRLPOutput) Test(org.junit.Test)

Example 2 with AccessListEntry

use of org.hyperledger.besu.evm.AccessListEntry in project besu by hyperledger.

the class MainnetTransactionProcessor method processTransaction.

public TransactionProcessingResult processTransaction(final Blockchain blockchain, final WorldUpdater worldState, final ProcessableBlockHeader blockHeader, final Transaction transaction, final Address miningBeneficiary, final OperationTracer operationTracer, final BlockHashLookup blockHashLookup, final Boolean isPersistingPrivateState, final TransactionValidationParams transactionValidationParams, final PrivateMetadataUpdater privateMetadataUpdater) {
    try {
        LOG.trace("Starting execution of {}", transaction);
        ValidationResult<TransactionInvalidReason> validationResult = transactionValidator.validate(transaction, blockHeader.getBaseFee(), transactionValidationParams);
        // be signed correctly to extract the sender).
        if (!validationResult.isValid()) {
            LOG.debug("Invalid transaction: {}", validationResult.getErrorMessage());
            return TransactionProcessingResult.invalid(validationResult);
        }
        final Address senderAddress = transaction.getSender();
        final EvmAccount sender = worldState.getOrCreateSenderAccount(senderAddress);
        validationResult = transactionValidator.validateForSender(transaction, sender, transactionValidationParams);
        if (!validationResult.isValid()) {
            LOG.debug("Invalid transaction: {}", validationResult.getErrorMessage());
            return TransactionProcessingResult.invalid(validationResult);
        }
        final MutableAccount senderMutableAccount = sender.getMutable();
        final long previousNonce = senderMutableAccount.incrementNonce();
        final Wei transactionGasPrice = feeMarket.getTransactionPriceCalculator().price(transaction, blockHeader.getBaseFee());
        LOG.trace("Incremented sender {} nonce ({} -> {})", senderAddress, previousNonce, sender.getNonce());
        final Wei upfrontGasCost = transaction.getUpfrontGasCost(transactionGasPrice);
        final Wei previousBalance = senderMutableAccount.decrementBalance(upfrontGasCost);
        LOG.trace("Deducted sender {} upfront gas cost {} ({} -> {})", senderAddress, upfrontGasCost, previousBalance, sender.getBalance());
        final List<AccessListEntry> accessListEntries = transaction.getAccessList().orElse(List.of());
        // we need to keep a separate hash set of addresses in case they specify no storage.
        // No-storage is a common pattern, especially for Externally Owned Accounts
        final Set<Address> addressList = new HashSet<>();
        final Multimap<Address, Bytes32> storageList = HashMultimap.create();
        int accessListStorageCount = 0;
        for (final var entry : accessListEntries) {
            final Address address = entry.getAddress();
            addressList.add(address);
            final List<Bytes32> storageKeys = entry.getStorageKeys();
            storageList.putAll(address, storageKeys);
            accessListStorageCount += storageKeys.size();
        }
        final long intrinsicGas = gasCalculator.transactionIntrinsicGasCost(transaction.getPayload(), transaction.isContractCreation());
        final long accessListGas = gasCalculator.accessListGasCost(accessListEntries.size(), accessListStorageCount);
        final long gasAvailable = transaction.getGasLimit() - intrinsicGas - accessListGas;
        LOG.trace("Gas available for execution {} = {} - {} (limit - intrinsic)", gasAvailable, transaction.getGasLimit(), intrinsicGas);
        final WorldUpdater worldUpdater = worldState.updater();
        final Deque<MessageFrame> messageFrameStack = new ArrayDeque<>();
        final ImmutableMap.Builder<String, Object> contextVariablesBuilder = ImmutableMap.<String, Object>builder().put(KEY_IS_PERSISTING_PRIVATE_STATE, isPersistingPrivateState).put(KEY_TRANSACTION, transaction).put(KEY_TRANSACTION_HASH, transaction.getHash());
        if (privateMetadataUpdater != null) {
            contextVariablesBuilder.put(KEY_PRIVATE_METADATA_UPDATER, privateMetadataUpdater);
        }
        final MessageFrame.Builder commonMessageFrameBuilder = MessageFrame.builder().messageFrameStack(messageFrameStack).maxStackSize(maxStackSize).worldUpdater(worldUpdater.updater()).initialGas(gasAvailable).originator(senderAddress).gasPrice(transactionGasPrice).sender(senderAddress).value(transaction.getValue()).apparentValue(transaction.getValue()).blockValues(blockHeader).depth(0).completer(__ -> {
        }).miningBeneficiary(miningBeneficiary).blockHashLookup(blockHashLookup).contextVariables(contextVariablesBuilder.build()).accessListWarmAddresses(addressList).accessListWarmStorage(storageList);
        final MessageFrame initialFrame;
        if (transaction.isContractCreation()) {
            final Address contractAddress = Address.contractAddress(senderAddress, senderMutableAccount.getNonce() - 1L);
            final Bytes initCodeBytes = transaction.getPayload();
            initialFrame = commonMessageFrameBuilder.type(MessageFrame.Type.CONTRACT_CREATION).address(contractAddress).contract(contractAddress).inputData(Bytes.EMPTY).code(contractCreationProcessor.getCodeFromEVM(Hash.hash(initCodeBytes), initCodeBytes)).build();
        } else {
            // isContractCall tests isPresent
            @SuppressWarnings("OptionalGetWithoutIsPresent") final Address to = transaction.getTo().get();
            final Optional<Account> maybeContract = Optional.ofNullable(worldState.get(to));
            initialFrame = commonMessageFrameBuilder.type(MessageFrame.Type.MESSAGE_CALL).address(to).contract(to).inputData(transaction.getPayload()).code(maybeContract.map(c -> messageCallProcessor.getCodeFromEVM(c.getCodeHash(), c.getCode())).orElse(Code.EMPTY_CODE)).build();
        }
        messageFrameStack.addFirst(initialFrame);
        while (!messageFrameStack.isEmpty()) {
            process(messageFrameStack.peekFirst(), operationTracer);
        }
        if (initialFrame.getState() == MessageFrame.State.COMPLETED_SUCCESS) {
            worldUpdater.commit();
        }
        if (LOG.isTraceEnabled()) {
            LOG.trace("Gas used by transaction: {}, by message call/contract creation: {}", transaction.getGasLimit() - initialFrame.getRemainingGas(), gasAvailable - initialFrame.getRemainingGas());
        }
        // Refund the sender by what we should and pay the miner fee (note that we're doing them one
        // after the other so that if it is the same account somehow, we end up with the right result)
        final long selfDestructRefund = gasCalculator.getSelfDestructRefundAmount() * initialFrame.getSelfDestructs().size();
        final long refundGas = initialFrame.getGasRefund() + selfDestructRefund;
        final long refunded = refunded(transaction, initialFrame.getRemainingGas(), refundGas);
        final Wei refundedWei = transactionGasPrice.multiply(refunded);
        senderMutableAccount.incrementBalance(refundedWei);
        final long gasUsedByTransaction = transaction.getGasLimit() - initialFrame.getRemainingGas();
        if (!worldState.getClass().equals(GoQuorumMutablePrivateWorldStateUpdater.class)) {
            // if this is not a private GoQuorum transaction we have to update the coinbase
            final var coinbase = worldState.getOrCreate(miningBeneficiary).getMutable();
            final long coinbaseFee = transaction.getGasLimit() - refunded;
            if (blockHeader.getBaseFee().isPresent()) {
                final Wei baseFee = blockHeader.getBaseFee().get();
                if (transactionGasPrice.compareTo(baseFee) < 0) {
                    return TransactionProcessingResult.failed(gasUsedByTransaction, refunded, ValidationResult.invalid(TransactionInvalidReason.TRANSACTION_PRICE_TOO_LOW, "transaction price must be greater than base fee"), Optional.empty());
                }
            }
            final CoinbaseFeePriceCalculator coinbaseCalculator = blockHeader.getBaseFee().isPresent() ? coinbaseFeePriceCalculator : CoinbaseFeePriceCalculator.frontier();
            final Wei coinbaseWeiDelta = coinbaseCalculator.price(coinbaseFee, transactionGasPrice, blockHeader.getBaseFee());
            coinbase.incrementBalance(coinbaseWeiDelta);
        }
        initialFrame.getSelfDestructs().forEach(worldState::deleteAccount);
        if (clearEmptyAccounts) {
            clearEmptyAccounts(worldState);
        }
        if (initialFrame.getState() == MessageFrame.State.COMPLETED_SUCCESS) {
            return TransactionProcessingResult.successful(initialFrame.getLogs(), gasUsedByTransaction, refunded, initialFrame.getOutputData(), validationResult);
        } else {
            return TransactionProcessingResult.failed(gasUsedByTransaction, refunded, validationResult, initialFrame.getRevertReason());
        }
    } catch (final RuntimeException re) {
        LOG.error("Critical Exception Processing Transaction", re);
        return TransactionProcessingResult.invalid(ValidationResult.invalid(TransactionInvalidReason.INTERNAL_ERROR, "Internal Error in Besu - " + re));
    }
}
Also used : EvmAccount(org.hyperledger.besu.evm.account.EvmAccount) KEY_TRANSACTION_HASH(org.hyperledger.besu.ethereum.mainnet.PrivateStateUtils.KEY_TRANSACTION_HASH) WorldUpdater(org.hyperledger.besu.evm.worldstate.WorldUpdater) Account(org.hyperledger.besu.evm.account.Account) AccessListEntry(org.hyperledger.besu.evm.AccessListEntry) LoggerFactory(org.slf4j.LoggerFactory) FeeMarket(org.hyperledger.besu.ethereum.mainnet.feemarket.FeeMarket) OperationTracer(org.hyperledger.besu.evm.tracing.OperationTracer) GoQuorumMutablePrivateWorldStateUpdater(org.hyperledger.besu.ethereum.worldstate.GoQuorumMutablePrivateWorldStateUpdater) Bytes(org.apache.tuweni.bytes.Bytes) KEY_PRIVATE_METADATA_UPDATER(org.hyperledger.besu.ethereum.mainnet.PrivateStateUtils.KEY_PRIVATE_METADATA_UPDATER) Deque(java.util.Deque) Multimap(com.google.common.collect.Multimap) Address(org.hyperledger.besu.datatypes.Address) ArrayList(java.util.ArrayList) HashSet(java.util.HashSet) AbstractMessageProcessor(org.hyperledger.besu.evm.processor.AbstractMessageProcessor) HashMultimap(com.google.common.collect.HashMultimap) Wei(org.hyperledger.besu.datatypes.Wei) TransactionInvalidReason(org.hyperledger.besu.ethereum.transaction.TransactionInvalidReason) Code(org.hyperledger.besu.evm.Code) Bytes32(org.apache.tuweni.bytes.Bytes32) ProcessableBlockHeader(org.hyperledger.besu.ethereum.core.ProcessableBlockHeader) PrivateMetadataUpdater(org.hyperledger.besu.ethereum.privacy.storage.PrivateMetadataUpdater) KEY_IS_PERSISTING_PRIVATE_STATE(org.hyperledger.besu.ethereum.mainnet.PrivateStateUtils.KEY_IS_PERSISTING_PRIVATE_STATE) Logger(org.slf4j.Logger) ImmutableMap(com.google.common.collect.ImmutableMap) Blockchain(org.hyperledger.besu.ethereum.chain.Blockchain) CoinbaseFeePriceCalculator(org.hyperledger.besu.ethereum.core.feemarket.CoinbaseFeePriceCalculator) Set(java.util.Set) BlockHashLookup(org.hyperledger.besu.ethereum.vm.BlockHashLookup) TransactionProcessingResult(org.hyperledger.besu.ethereum.processing.TransactionProcessingResult) GasCalculator(org.hyperledger.besu.evm.gascalculator.GasCalculator) List(java.util.List) KEY_TRANSACTION(org.hyperledger.besu.ethereum.mainnet.PrivateStateUtils.KEY_TRANSACTION) MutableAccount(org.hyperledger.besu.evm.account.MutableAccount) Optional(java.util.Optional) MessageFrame(org.hyperledger.besu.evm.frame.MessageFrame) ArrayDeque(java.util.ArrayDeque) Transaction(org.hyperledger.besu.ethereum.core.Transaction) Hash(org.hyperledger.besu.datatypes.Hash) EvmAccount(org.hyperledger.besu.evm.account.EvmAccount) Account(org.hyperledger.besu.evm.account.Account) MutableAccount(org.hyperledger.besu.evm.account.MutableAccount) Address(org.hyperledger.besu.datatypes.Address) MessageFrame(org.hyperledger.besu.evm.frame.MessageFrame) Bytes32(org.apache.tuweni.bytes.Bytes32) Bytes(org.apache.tuweni.bytes.Bytes) AccessListEntry(org.hyperledger.besu.evm.AccessListEntry) EvmAccount(org.hyperledger.besu.evm.account.EvmAccount) TransactionInvalidReason(org.hyperledger.besu.ethereum.transaction.TransactionInvalidReason) MutableAccount(org.hyperledger.besu.evm.account.MutableAccount) HashSet(java.util.HashSet) CoinbaseFeePriceCalculator(org.hyperledger.besu.ethereum.core.feemarket.CoinbaseFeePriceCalculator) WorldUpdater(org.hyperledger.besu.evm.worldstate.WorldUpdater) GoQuorumMutablePrivateWorldStateUpdater(org.hyperledger.besu.ethereum.worldstate.GoQuorumMutablePrivateWorldStateUpdater) ArrayDeque(java.util.ArrayDeque) ImmutableMap(com.google.common.collect.ImmutableMap) Wei(org.hyperledger.besu.datatypes.Wei)

Example 3 with AccessListEntry

use of org.hyperledger.besu.evm.AccessListEntry in project besu by hyperledger.

the class TransactionDecoder method decodeAccessList.

private static Transaction decodeAccessList(final RLPInput rlpInput) {
    rlpInput.enterList();
    final Transaction.Builder preSignatureTransactionBuilder = Transaction.builder().type(TransactionType.ACCESS_LIST).chainId(BigInteger.valueOf(rlpInput.readLongScalar())).nonce(rlpInput.readLongScalar()).gasPrice(Wei.of(rlpInput.readUInt256Scalar())).gasLimit(rlpInput.readLongScalar()).to(rlpInput.readBytes(addressBytes -> addressBytes.size() == 0 ? null : Address.wrap(addressBytes))).value(Wei.of(rlpInput.readUInt256Scalar())).payload(rlpInput.readBytes()).accessList(rlpInput.readList(accessListEntryRLPInput -> {
        accessListEntryRLPInput.enterList();
        final AccessListEntry accessListEntry = new AccessListEntry(Address.wrap(accessListEntryRLPInput.readBytes()), accessListEntryRLPInput.readList(RLPInput::readBytes32));
        accessListEntryRLPInput.leaveList();
        return accessListEntry;
    }));
    final byte recId = (byte) rlpInput.readIntScalar();
    final Transaction transaction = preSignatureTransactionBuilder.signature(SIGNATURE_ALGORITHM.get().createSignature(rlpInput.readUInt256Scalar().toUnsignedBigInteger(), rlpInput.readUInt256Scalar().toUnsignedBigInteger(), recId)).build();
    rlpInput.leaveList();
    return transaction;
}
Also used : GO_QUORUM_PRIVATE_TRANSACTION_V_VALUE_MIN(org.hyperledger.besu.ethereum.core.Transaction.GO_QUORUM_PRIVATE_TRANSACTION_V_VALUE_MIN) SECPSignature(org.hyperledger.besu.crypto.SECPSignature) REPLAY_UNPROTECTED_V_BASE(org.hyperledger.besu.ethereum.core.Transaction.REPLAY_UNPROTECTED_V_BASE) AccessListEntry(org.hyperledger.besu.evm.AccessListEntry) REPLAY_PROTECTED_V_BASE(org.hyperledger.besu.ethereum.core.Transaction.REPLAY_PROTECTED_V_BASE) Bytes(org.apache.tuweni.bytes.Bytes) REPLAY_PROTECTED_V_MIN(org.hyperledger.besu.ethereum.core.Transaction.REPLAY_PROTECTED_V_MIN) Address(org.hyperledger.besu.datatypes.Address) Supplier(java.util.function.Supplier) TWO(org.hyperledger.besu.ethereum.core.Transaction.TWO) RLPInput(org.hyperledger.besu.ethereum.rlp.RLPInput) Wei(org.hyperledger.besu.datatypes.Wei) Suppliers(com.google.common.base.Suppliers) BigInteger(java.math.BigInteger) ImmutableMap(com.google.common.collect.ImmutableMap) Preconditions.checkNotNull(com.google.common.base.Preconditions.checkNotNull) GoQuorumPrivateTransactionDetector(org.hyperledger.besu.ethereum.transaction.GoQuorumPrivateTransactionDetector) RLP(org.hyperledger.besu.ethereum.rlp.RLP) SignatureAlgorithmFactory(org.hyperledger.besu.crypto.SignatureAlgorithmFactory) GoQuorumOptions(org.hyperledger.besu.config.GoQuorumOptions) SignatureAlgorithm(org.hyperledger.besu.crypto.SignatureAlgorithm) REPLAY_UNPROTECTED_V_BASE_PLUS_1(org.hyperledger.besu.ethereum.core.Transaction.REPLAY_UNPROTECTED_V_BASE_PLUS_1) Optional(java.util.Optional) TransactionType(org.hyperledger.besu.plugin.data.TransactionType) Transaction(org.hyperledger.besu.ethereum.core.Transaction) AccessListEntry(org.hyperledger.besu.evm.AccessListEntry) RLPInput(org.hyperledger.besu.ethereum.rlp.RLPInput) Transaction(org.hyperledger.besu.ethereum.core.Transaction)

Example 4 with AccessListEntry

use of org.hyperledger.besu.evm.AccessListEntry in project besu by hyperledger.

the class TransactionDecoder method decodeEIP1559.

static Transaction decodeEIP1559(final RLPInput input) {
    input.enterList();
    final BigInteger chainId = input.readBigIntegerScalar();
    final Transaction.Builder builder = Transaction.builder().type(TransactionType.EIP1559).chainId(chainId).nonce(input.readLongScalar()).maxPriorityFeePerGas(Wei.of(input.readUInt256Scalar())).maxFeePerGas(Wei.of(input.readUInt256Scalar())).gasLimit(input.readLongScalar()).to(input.readBytes(v -> v.size() == 0 ? null : Address.wrap(v))).value(Wei.of(input.readUInt256Scalar())).payload(input.readBytes()).accessList(input.readList(accessListEntryRLPInput -> {
        accessListEntryRLPInput.enterList();
        final AccessListEntry accessListEntry = new AccessListEntry(Address.wrap(accessListEntryRLPInput.readBytes()), accessListEntryRLPInput.readList(RLPInput::readBytes32));
        accessListEntryRLPInput.leaveList();
        return accessListEntry;
    }));
    final byte recId = (byte) input.readIntScalar();
    final Transaction transaction = builder.signature(SIGNATURE_ALGORITHM.get().createSignature(input.readUInt256Scalar().toUnsignedBigInteger(), input.readUInt256Scalar().toUnsignedBigInteger(), recId)).build();
    input.leaveList();
    return transaction;
}
Also used : GO_QUORUM_PRIVATE_TRANSACTION_V_VALUE_MIN(org.hyperledger.besu.ethereum.core.Transaction.GO_QUORUM_PRIVATE_TRANSACTION_V_VALUE_MIN) SECPSignature(org.hyperledger.besu.crypto.SECPSignature) REPLAY_UNPROTECTED_V_BASE(org.hyperledger.besu.ethereum.core.Transaction.REPLAY_UNPROTECTED_V_BASE) AccessListEntry(org.hyperledger.besu.evm.AccessListEntry) REPLAY_PROTECTED_V_BASE(org.hyperledger.besu.ethereum.core.Transaction.REPLAY_PROTECTED_V_BASE) Bytes(org.apache.tuweni.bytes.Bytes) REPLAY_PROTECTED_V_MIN(org.hyperledger.besu.ethereum.core.Transaction.REPLAY_PROTECTED_V_MIN) Address(org.hyperledger.besu.datatypes.Address) Supplier(java.util.function.Supplier) TWO(org.hyperledger.besu.ethereum.core.Transaction.TWO) RLPInput(org.hyperledger.besu.ethereum.rlp.RLPInput) Wei(org.hyperledger.besu.datatypes.Wei) Suppliers(com.google.common.base.Suppliers) BigInteger(java.math.BigInteger) ImmutableMap(com.google.common.collect.ImmutableMap) Preconditions.checkNotNull(com.google.common.base.Preconditions.checkNotNull) GoQuorumPrivateTransactionDetector(org.hyperledger.besu.ethereum.transaction.GoQuorumPrivateTransactionDetector) RLP(org.hyperledger.besu.ethereum.rlp.RLP) SignatureAlgorithmFactory(org.hyperledger.besu.crypto.SignatureAlgorithmFactory) GoQuorumOptions(org.hyperledger.besu.config.GoQuorumOptions) SignatureAlgorithm(org.hyperledger.besu.crypto.SignatureAlgorithm) REPLAY_UNPROTECTED_V_BASE_PLUS_1(org.hyperledger.besu.ethereum.core.Transaction.REPLAY_UNPROTECTED_V_BASE_PLUS_1) Optional(java.util.Optional) TransactionType(org.hyperledger.besu.plugin.data.TransactionType) Transaction(org.hyperledger.besu.ethereum.core.Transaction) AccessListEntry(org.hyperledger.besu.evm.AccessListEntry) RLPInput(org.hyperledger.besu.ethereum.rlp.RLPInput) Transaction(org.hyperledger.besu.ethereum.core.Transaction) BigInteger(java.math.BigInteger)

Example 5 with AccessListEntry

use of org.hyperledger.besu.evm.AccessListEntry in project besu by hyperledger.

the class BlockDataGenerator method accessList.

private List<AccessListEntry> accessList() {
    final List<Address> accessedAddresses = Stream.generate(this::address).limit(1L + random.nextInt(3)).collect(toUnmodifiableList());
    final List<AccessListEntry> accessedStorage = new ArrayList<>();
    for (int i = 0; i < accessedAddresses.size(); ++i) {
        accessedStorage.add(new AccessListEntry(accessedAddresses.get(i), Stream.generate(this::bytes32).limit(2L * i).collect(toUnmodifiableList())));
    }
    return accessedStorage;
}
Also used : AccessListEntry(org.hyperledger.besu.evm.AccessListEntry) Address(org.hyperledger.besu.datatypes.Address) ArrayList(java.util.ArrayList)

Aggregations

AccessListEntry (org.hyperledger.besu.evm.AccessListEntry)5 Address (org.hyperledger.besu.datatypes.Address)4 ImmutableMap (com.google.common.collect.ImmutableMap)3 BigInteger (java.math.BigInteger)3 Optional (java.util.Optional)3 Bytes (org.apache.tuweni.bytes.Bytes)3 Wei (org.hyperledger.besu.datatypes.Wei)3 Transaction (org.hyperledger.besu.ethereum.core.Transaction)3 Preconditions.checkNotNull (com.google.common.base.Preconditions.checkNotNull)2 Suppliers (com.google.common.base.Suppliers)2 ArrayList (java.util.ArrayList)2 Supplier (java.util.function.Supplier)2 GoQuorumOptions (org.hyperledger.besu.config.GoQuorumOptions)2 SECPSignature (org.hyperledger.besu.crypto.SECPSignature)2 SignatureAlgorithm (org.hyperledger.besu.crypto.SignatureAlgorithm)2 SignatureAlgorithmFactory (org.hyperledger.besu.crypto.SignatureAlgorithmFactory)2 GO_QUORUM_PRIVATE_TRANSACTION_V_VALUE_MIN (org.hyperledger.besu.ethereum.core.Transaction.GO_QUORUM_PRIVATE_TRANSACTION_V_VALUE_MIN)2 REPLAY_PROTECTED_V_BASE (org.hyperledger.besu.ethereum.core.Transaction.REPLAY_PROTECTED_V_BASE)2 REPLAY_PROTECTED_V_MIN (org.hyperledger.besu.ethereum.core.Transaction.REPLAY_PROTECTED_V_MIN)2 REPLAY_UNPROTECTED_V_BASE (org.hyperledger.besu.ethereum.core.Transaction.REPLAY_UNPROTECTED_V_BASE)2