ExPlasma.Transaction.Witness (ExPlasma v0.2.0)
Code required to validate and recover raw witnesses (e.g. signatures) goes here.
Link to this section Summary
Functions
Prepares the witness to be quickly used in stateful validation
Pre-check done after decoding to quickly assert whether the witness has one of valid forms
Link to this section Types
Link to this type
recovery_error()
Specs
recovery_error() :: :corrupted_witness | :malformed_witnesses
Specs
t() :: ExPlasma.Crypto.address_t()
Link to this section Functions
Link to this function
recover(raw_tx_hash, raw_witness)
Specs
recover(ExPlasma.Crypto.hash_t(), ExPlasma.Crypto.sig_t()) :: {:ok, ExPlasma.Crypto.address_t()} | {:error, recovery_error()}
Prepares the witness to be quickly used in stateful validation
Link to this function
valid?(witness)
Pre-check done after decoding to quickly assert whether the witness has one of valid forms