In Corda, while using accounts we request for public keys for performing any kind of transaction and it is advisable to use that public key for one time Or for one transaction. So what will be the max threshold of requesting the public keys for an account. Or in other words what is the maximum number of public keys we can be generate for an account.
Asked
Active
Viewed 182 times
1 Answers
0
There is no threshold as such. The keys get stored in the database, so as long as you have storage space you should be good.

Ashutosh Meher
- 1,811
- 2
- 7
- 16
-
What algorithm corda is using for producing these public keys? – Karan chopra Sep 15 '20 at 12:16
-
@Karanchopra Confidential Identities https://github.com/corda/confidential-identities/blob/master/docs/OVERVIEW.md – Alessandro Baffa Sep 15 '20 at 12:22
-
According to this link corda uses SHA 256, and we can make possible number of request for public key of an account is 2^256. Is it correct? – Karan chopra Sep 15 '20 at 13:08
-
It seems so. https://stackoverflow.com/questions/49519987/how-many-combinations-does-sha-256-have – Alessandro Baffa Sep 16 '20 at 00:33
-
Alessandro so the max number of pk we can get is 2^256 right? But corda is recommending usage of new pk everytime. Also @AshutoshMeher is also saying there is no threshold as such. – Karan chopra Sep 16 '20 at 08:28
-
Well, 2^256 is insanely big. You dont have to worry about ever reaching that limit. – Ashutosh Meher Sep 16 '20 at 08:31