0:00 Over to you. Okay. Thank you, Karla. Thank you for having us today. I can start.
0:08 My name is Jaime Caso. I work as Innovation Engineer at Veridian. I'm here
0:13 with Roberto, Lead DevRel Advocate. And we are going to present Veridian Wallet with
0:21 KERI protocol and a CESR-based wallet. And we're going to present two demos. Same
0:26 demos that we presented three weeks ago, I think, at IIW. And yes, as you say, Karla,
0:33 the first one is about wallet recovery using biometric smart cards. And the
0:38 second one by Roberto is going to be about OpenID Connect login with ACDC.
0:43 I'm going to reuse my slides from IIW. Let me share my screen.
0:56 Share screen.
1:00 I sent a request. Okay, perfect.
1:14 Perfect. Thank you. Thank you.
1:27 I guess you already can see the screen, right? Yes, we can. Thank you.
1:36 Let's go for the first demo. Before going to the demo, let's explain a bit about it.
1:45 So far in Veridian wallet everything starts from a secret. In KERI we call this
1:53 secret the bran and in Veridian wallet we call it the seed phrase because we use a
2:02 human-readable representation of this bran, of this entropy, and then from
2:11 this entropy we can derive all the keys, signing keys and rotation keys. But this
2:20 seed phrase has a few problems like if you lose the words, you lose the
2:25 wallet or if someone sees the words, they can take control of the wallet. And it's
2:31 true that sometimes it's hard to keep safe this seed phrase over time because maybe
2:37 you lose the USB or the paper or even you can forget where you put the seed
2:45 phrase. The idea is to separate the signing key from the rotation key. Being
2:54 the signing key, as in the sig, which stays in the phone and you can use this key for
3:02 your daily requests as the controller to sign and secure the communication between
3:07 the wallet and the cloud agent and get access to the identities. In Veridian
3:12 Wallet, we call these identities profiles. And then we have the rotation
3:16 power, the rotation key, which is a multisig with a threshold one of two in this
3:22 case for this demo. This means that you can use one card or the other to rotate
3:29 the wallet, to rotate the controller. It's important to mention that these cards stay
3:36 in different places, isolated, offline. And we don't expose these cards, these
3:41 private keys, as we expose the signing key every day. We just use them when we need
3:47 them on demand. We can think that for example one of the cards could be kept safe at
3:53 home and the other card could be kept safe by an accredited custodian like a bank. We
4:02 have these two cards here and the gray one comes directly from
4:09 China, from the factory, and here you can see the biometric sensor for the
4:15 fingerprint. And then we have the second one, the black one, again with the
4:20 fingerprint. And this comes from a US provider, I think it's from HID.
4:27 Let's go for the demo. For the demo, I'm going to use two devices, a Samsung and
4:35 then an iPhone and these two cards. I'm going to hold back the camera of my
4:43 laptop a bit so you can see how I handle the phone and the cards. Just a second.
4:55 Okay. Let me remove the blur background. No, it's perfect. Cool.
5:10 Okay. And also let me share the screen of the first device, the Samsung. I'm going
5:15 to start with the Samsung device, which is this one. I already onboarded the
5:24 wallet and as you can see on the screen, at the top, there is a banner that says
5:29 that I should verify my recovery phrase, the seed phrase. Actually, we can take a look
5:36 quickly.
5:41 Okay. And these are the words, the ordered words. We want to separate the signing
5:48 key from the rotation key. We want to do the backup using these two smart cards.
5:55 Okay. Let's go back to home and now we need to go to settings. And in settings we
6:03 have a new option here which is called backup with a card. And this is the option
6:09 we need to select in order to go ahead and do the backup with the smart cards to move
6:15 the rotation power from the seed phrase which is actually in the phone right now
6:20 to these new smart cards. Let's go to the option and now we're going to
6:29 present these two cards to the phone in order to do the rotation. And let's say
6:35 activate these cards for the rotation power. Let's go for it. Let's go one by
6:41 one. I click on start and now the wallet is asking me to tap with the first
6:49 card. Let's go for it. I touch with my fingerprint on the sensor and I already
6:56 presented the first card. Next I need to do the same with the second. I click
7:02 on add as a second card. I tap. I touch the fingerprint sensor and it's done. Now,
7:11 I'm ready to do the rotation and to go from seed phrase to smart cards. I can
7:19 click on confirm backup and
7:24 voila, it's done. We can actually double-check it. Here we see that we have
7:34 the two cards, the gray one and the black one. Before the demo, before this call,
7:45 I already populated this wallet with… Jared? Sorry, can you unmute? Thank
7:53 you. Sorry. Thank you. No worries. Thank you. Before the demo, I
8:00 populated the wallet with a few credentials, one connection and
8:05 notification. So the recovery is more interesting. Now let's go for the
8:14 situation where I lose my phone or someone takes it. What is going to happen is
8:21 that I don't have access to this device anymore. I lost it. What I'm going to
8:28 do is recover the whole wallet, all the identities, credentials and
8:34 everything on a new phone. For that, I bought a new phone. Let me show this one, which
8:43 is an iPhone. Oh, sorry. Oh, sorry. Let me do it.
8:55 Which is an iPhone. And I already installed the Veridian wallet.
9:06 In this case, I need to do the onboarding. And I need to select that I
9:12 already have a wallet. I click on the option. Accept the terms. Create the pin
9:20 code.
9:25 I'm going to enable biometrics. Okay. No password this time. And now I need to do
9:33 the recovery. I need to present the cards. In this case, as I said, this is a
9:38 threshold one of two. I just need to present one card. I'm going to use the
9:41 gray one in this case. Let's go for it. Now the wallet is asking me to tap. I
9:51 need to touch the sensor with my fingerprint. And now it's asking if I
9:57 still have the second one. I have it. I click on I have it. I touch again the
10:03 sensor.
10:12 And one more time.
10:24 And boom, the recovery is done. I can get access again to the wallet. I can go to
10:31 the credentials. I have everything, both credentials. I have the connection and I
10:35 have all the notifications. And one thing that is really important is that in the
10:41 other phone, in the Samsung, you see the white screen saying that this wallet was
10:47 moved to another phone. You recovered this wallet on another device. For security,
10:54 the keys on this phone were rotated. This phone can no longer be used. Your
11:00 identity and credentials are safe on the new device. What we did is we rotated
11:06 the controller and the old controller, the one in the Samsung, can't use the wallet
11:13 anymore. It lost access to it. This is basically the demo. It was quick.
11:25 In IIW, there were some questions like if the signing key is a single sig. It's
11:30 not a multisig. As I said in the beginning, it's a single sig. Also, there was a question
11:37 about how many keys can I store in the card. And the thing is that we don't store
11:45 keys. I mean the raw data of the key in the card. What we store in the card is the
11:51 master seed, which is 32 bytes. Also the counter, the index of the current rotation
12:00 key. And if we do the numbers, the math: in one slot of this card, we can have more
12:08 than 65,000 rotations. And this means one rotation per day for 170 years.
12:19 That's a lot. And each card has actually 256 slots. This means if you
12:29 do the math again, this is 17 million rotations. Of course, you will never reach
12:36 that number. Probably you will lose the card before or rotate to a new card before.
12:44 And that's the demo. It was quick. I'm going to pass the ball to Roberto.
12:52 Maybe… – Question, Jaime. – Yeah, definitely. – Key rotation in KERI is
12:58 agnostic about… You don't need to use hierarchical deterministic key management
13:09 there. It's not one seed that you have to use. But in this case, you use one
13:15 seed, don't you? You use the HDKM functionality of it. – Yeah. And this seed
13:23 is in the secure element of the chip. It never leaves the secure element.
13:29 And you use the index to go to the next rotation key. – Yeah. And that is
13:35 a derivation from the master key. – Yeah. That's it. Got it.
13:46 Can I comment on that? Yeah. By putting the
13:55 derivation of the HD keychain in an external hardware HSM, then you eliminate
14:03 a lot of the attack vectors where you're attacking the client
14:10 that's running in a web browser or something like that when you're entering
14:14 the seed phrase to be able to regenerate your keys. This eliminates a whole host
14:21 of attack vectors by putting it externally. It's a balance between
14:28 security and user friction. Whereas if you had to use a different seed phrase, then
14:35 you'd have to have a new smart card every time you
14:39 rotated. That would be really a lot of friction. Yep.
14:49 Thank you, Sam. That's all for the first demo. I can pass the ball if no
14:56 more questions to Roberto.
15:04 I would say this is great. This solves one of the friction
15:12 problems with pre-rotated keys in a nice way using inexpensive hardware. – If I
15:20 understand it correctly, you have two smart cards because if you lose one, you
15:24 will not lose your access to your pre-rotated keys. – Yeah, you can have
15:33 an arbitrary number of cards. This is just to simplify the demo and to
15:38 demonstrate the multisig. You can have four, you can have 10. Yeah. Okay. As much
15:44 as you feel safe. Yeah. And you could also do a different threshold. You
15:52 could have instead of one of n in this
15:57 case one of two or one of three or one of four you could do two of six and then
16:02 you'd have six smart cards and any two would be required. Yep. Got it. And we can
16:10 use different custodians for them. You diversify the risk of them being stolen
16:19 and pulled together. I mean, they are protected with biometrics, but… No, but a
16:26 lot of key recovery algorithms are based on sharding a single key. And in this
16:32 case, you're not sharding a single key, you're sharding control amongst multiple
16:37 keys, which is actually a more secure path. For example, you could think of
16:42 your shard as each card is one of the shards of the control over your
16:50 identifier. And you could have social recovery where you gave a card to your
17:00 relatives and then have, instead of one of n, have three of a minimum
17:08 of three that they have to get together to do it. You can replicate the same sort
17:13 of social recovery, but in a much more secure way without sharding a single key,
17:18 but by effectively sharding your control amongst a bunch of cards. I don't know if
17:23 you guys ever thought of it that way, but that's obviously a place you could go with
17:29 this.
17:37 Sorry, that's all I had to say. Sorry. Interruption. No worries. Yeah, there was
17:45 one last thing I want to mention about these card providers. They are working
17:52 also on the next version of the cards to support post-quantum signatures,
17:59 specifically ML-DSA. The target is 2027. Thanks to KERI, to CESR
18:12 and KIP-2 agility. Maybe at some point we can also support these kinds of signatures.
18:19 One thing worth mentioning: one year ago, I think September last year, in
18:25 iOS 26, they included this type of signatures, ML-DSA, in the Secure Enclave
18:40 of the iPhones. And then this year it was June. Also Android did the
18:49 same for Android 17. This means that millions of users will be exposed to
18:56 this new kind of signatures, post-quantum signatures, this new standard approved by
19:02 NIST. It's nice to be aware of that.