@@ -8,8 +8,6 @@ pub struct Identifier {
8
8
pub identifier : String ,
9
9
#[ wasm_bindgen( js_name = identifierKind) ]
10
10
pub identifier_kind : IdentifierKind ,
11
- #[ wasm_bindgen( js_name = relyingParty) ]
12
- pub relying_party : Option < String > ,
13
11
}
14
12
15
13
#[ wasm_bindgen]
@@ -18,12 +16,10 @@ impl Identifier {
18
16
pub fn new (
19
17
identifier : String ,
20
18
#[ wasm_bindgen( js_name = identifierKind) ] identifier_kind : IdentifierKind ,
21
- #[ wasm_bindgen( js_name = relyingParty) ] relying_party : Option < String > ,
22
19
) -> Self {
23
20
Self {
24
21
identifier,
25
22
identifier_kind,
26
- relying_party,
27
23
}
28
24
}
29
25
}
@@ -41,12 +37,10 @@ impl From<XmtpIdentifier> for Identifier {
41
37
XmtpIdentifier :: Ethereum ( ident:: Ethereum ( addr) ) => Self {
42
38
identifier : addr,
43
39
identifier_kind : IdentifierKind :: Ethereum ,
44
- relying_party : None ,
45
40
} ,
46
- XmtpIdentifier :: Passkey ( ident:: Passkey { key, relying_party } ) => Self {
41
+ XmtpIdentifier :: Passkey ( ident:: Passkey { key, .. } ) => Self {
47
42
identifier : hex:: encode ( key) ,
48
43
identifier_kind : IdentifierKind :: Passkey ,
49
- relying_party,
50
44
} ,
51
45
}
52
46
}
@@ -57,7 +51,7 @@ impl TryFrom<Identifier> for XmtpIdentifier {
57
51
fn try_from ( ident : Identifier ) -> Result < Self , Self :: Error > {
58
52
let ident = match ident. identifier_kind {
59
53
IdentifierKind :: Ethereum => Self :: eth ( ident. identifier ) ?,
60
- IdentifierKind :: Passkey => Self :: passkey_str ( & ident. identifier , ident . relying_party ) ?,
54
+ IdentifierKind :: Passkey => Self :: passkey_str ( & ident. identifier , None ) ?,
61
55
} ;
62
56
Ok ( ident)
63
57
}
0 commit comments