# Struct ethcore::transaction::SignedTransaction [−] [src]

    pub struct SignedTransaction { /* fields omitted */ }

A `UnverifiedTransaction` with successfully recovered `sender`.

## Methods

### `impl SignedTransaction`
[src]

#### `fn new(transaction: UnverifiedTransaction) -> Result<Self, Error>`

Try to verify transaction and recover sender.

#### `fn sender(&self) -> Address`

Returns transaction sender.

#### `fn public_key(&self) -> Public`

Returns a public key of the sender.

## Methods from Deref<Target=UnverifiedTransaction>

#### `fn as_unsigned(&self) -> &Transaction`

Reference to unsigned part of this transaction.

#### `fn standard_v(&self) -> u8`

0 if `v` would have been 27 under "Electrum" notation, 1 if 28 or 4 if invalid.

#### `fn original_v(&self) -> u64`

The `v` value that appears in the RLP.

#### `fn network_id(&self) -> Option<u64>`

The network ID, or `None` if this is a global transaction.

#### `fn signature(&self) -> Signature`

Construct a signature object from the sig.

#### `fn check_low_s(&self) -> Result<(), Error>`

Checks whether the signature has a low 's' value.

#### `fn hash(&self) -> H256`

Get the hash of this header (sha3 of the RLP).

#### `fn recover_public(&self) -> Result<Public, Error>`

Recovers the public key of the sender.

## Trait Implementations

### `impl From<Transaction> for SignedTransaction`
[src]

#### `fn from(t: Transaction) -> Self`

Performs the conversion.

### `impl Debug for SignedTransaction`
[src]

#### `fn fmt(&self, __arg_0: &mut Formatter) -> Result`

Formats the value using the given formatter.

### `impl Clone for SignedTransaction`
[src]

#### `fn clone(&self) -> SignedTransaction`

Returns a copy of the value. Read more

#### `fn clone_from(&mut self, source: &Self)`
1.0.0

Performs copy-assignment from `source`. Read more

### `impl Eq for SignedTransaction`
[src]

### `impl PartialEq for SignedTransaction`
[src]

#### `fn eq(&self, __arg_0: &SignedTransaction) -> bool`

This method tests for `self` and `other` values to be equal, and is used by `==`. Read more

#### `fn ne(&self, __arg_0: &SignedTransaction) -> bool`

This method tests for `!=`.

### `impl HeapSizeOf for SignedTransaction`
[src]

#### `fn heap_size_of_children(&self) -> usize`

Measure the size of any heap-allocated structures that hang off this value, but not the space taken up by the value itself (i.e. what size_of::<T> measures, more or less); that space is handled by the implementation of HeapSizeOf for Box<T> below. Read more

### `impl Encodable for SignedTransaction`
[src]

#### `fn rlp_append(&self, s: &mut RlpStream)`

Append a value to the stream

#### `fn rlp_bytes(&self) -> ElasticArray1024<u8>`

Get rlp-encoded bytes for this instance

### `impl Deref for SignedTransaction`
[src]

#### `type Target = UnverifiedTransaction`

The resulting type after dereferencing

#### `fn deref(&self) -> &Self::Target`

The method called to dereference a value

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)