You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Curve SECP256K1 as defined in <https://www.secg.org/sec2-v2.pdf>
108
109
#[serde(rename = "CURVE_SECP256K1")]
109
110
Secp256k1 = 1,
111
+
/// Curve ED25519 as defined in <https://www.rfc-editor.org/rfc/rfc8032>
110
112
#[serde(rename = "CURVE_ED25519")]
111
113
Ed25519 = 2,
114
+
/// Curve NIST P-256 (secp256r1) as defined in <https://csrc.nist.gov/csrc/media/events/workshop-on-elliptic-curve-cryptography-standards/documents/papers/session6-adalier-mehmet.pdf>
115
+
#[serde(rename = "CURVE_P256")]
116
+
P256 = 3,
112
117
}
113
118
implCurve{
114
119
/// String value of the enum field names used in the ProtoBuf definition.
@@ -120,6 +125,7 @@ impl Curve {
120
125
Self::Unspecified => "CURVE_UNSPECIFIED",
121
126
Self::Secp256k1 => "CURVE_SECP256K1",
122
127
Self::Ed25519 => "CURVE_ED25519",
128
+
Self::P256 => "CURVE_P256",
123
129
}
124
130
}
125
131
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -128,6 +134,7 @@ impl Curve {
128
134
"CURVE_UNSPECIFIED" => Some(Self::Unspecified),
129
135
"CURVE_SECP256K1" => Some(Self::Secp256k1),
130
136
"CURVE_ED25519" => Some(Self::Ed25519),
137
+
"CURVE_P256" => Some(Self::P256),
131
138
_ => None,
132
139
}
133
140
}
@@ -1096,6 +1103,9 @@ pub enum TransactionType {
1096
1103
/// Unsigned Bitcoin transaction, hex encoded
1097
1104
#[serde(rename = "TRANSACTION_TYPE_BITCOIN")]
1098
1105
Bitcoin = 4,
1106
+
/// Unsigned Tempo transaction. Similar to EVM transactions but includes extra fields for Tempo
1107
+
#[serde(rename = "TRANSACTION_TYPE_TEMPO")]
1108
+
Tempo = 5,
1099
1109
}
1100
1110
implTransactionType{
1101
1111
/// String value of the enum field names used in the ProtoBuf definition.
@@ -1109,6 +1119,7 @@ impl TransactionType {
1109
1119
Self::Solana => "TRANSACTION_TYPE_SOLANA",
1110
1120
Self::Tron => "TRANSACTION_TYPE_TRON",
1111
1121
Self::Bitcoin => "TRANSACTION_TYPE_BITCOIN",
1122
+
Self::Tempo => "TRANSACTION_TYPE_TEMPO",
1112
1123
}
1113
1124
}
1114
1125
/// Creates an enum from field names used in the ProtoBuf definition.
0 commit comments