mirror of https://github.com/hyperledger/besu
add sendSignedTransaction method to QuorumEnclave (#1642)
* add sendSignedTransaction method to QuorumEnclave Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>pull/1647/head
parent
8f72d28c04
commit
44c4d75016
@ -0,0 +1,41 @@ |
||||
/* |
||||
* Copyright ConsenSys AG. |
||||
* |
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with |
||||
* the License. You may obtain a copy of the License at |
||||
* |
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on |
||||
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the |
||||
* specific language governing permissions and limitations under the License. |
||||
* |
||||
* SPDX-License-Identifier: Apache-2.0 |
||||
*/ |
||||
package org.hyperledger.besu.enclave.types; |
||||
|
||||
import java.util.List; |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; |
||||
|
||||
@JsonPropertyOrder({"hash", "to"}) |
||||
public class GoQuorumSendSignedRequest { |
||||
private final byte[] hash; |
||||
private final List<String> to; |
||||
|
||||
public GoQuorumSendSignedRequest( |
||||
@JsonProperty(value = "hash") final byte[] hash, |
||||
@JsonProperty(value = "to") final List<String> privateFor) { |
||||
this.hash = hash; |
||||
this.to = privateFor; |
||||
} |
||||
|
||||
public byte[] getHash() { |
||||
return hash; |
||||
} |
||||
|
||||
public List<String> getTo() { |
||||
return to; |
||||
} |
||||
} |
Loading…
Reference in new issue