ExPlasma.Transaction.Witness (ExPlasma v0.3.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

Link to this section Functions

Link to this function

recover(raw_tx_hash, raw_witness)

Specs

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