Skip to content

Commit

Permalink
further clarify eip-712
Browse files Browse the repository at this point in the history
Co-authored-by: Federico Giacon <[email protected]>
  • Loading branch information
sistemd and fedgiac authored Nov 29, 2022
1 parent 7e1c17a commit e3cbce4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/model/src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ impl From<QuoteSigningScheme> for SigningScheme {
}
}

/// Signature over the EIP-712 hash of the order data. This hash is referred to as the order hash.
/// Signature over the order data.
/// All variants rely on the EIP-712 hash of the order data, referred to as the order hash.
#[derive(Eq, PartialEq, Clone, Deserialize, Serialize, Hash)]
#[serde(into = "JsonSignature", try_from = "JsonSignature")]
pub enum Signature {
/// The order hash is signed according to EIP-712.
/// The order struct is signed according to EIP-712.
///
/// https://eips.ethereum.org/EIPS/eip-712
Eip712(EcdsaSignature),
Expand Down

0 comments on commit e3cbce4

Please sign in to comment.