Skip to content

Commit

Permalink
allow EdDSA for B33
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Jul 23, 2024
1 parent d7a079a commit 3096905
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion b33address.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ int main(int argc, char * argv[])
auto ident = std::make_shared<i2p::data::IdentityEx>();
if (ident->FromBase64 (base64))
{
if (ident->GetSigningKeyType () == i2p::data::SIGNING_KEY_TYPE_REDDSA_SHA512_ED25519)
if (ident->GetSigningKeyType () == i2p::data::SIGNING_KEY_TYPE_REDDSA_SHA512_ED25519 ||
ident->GetSigningKeyType () == i2p::data::SIGNING_KEY_TYPE_EDDSA_SHA512_ED25519)
{
i2p::data::BlindedPublicKey blindedKey (ident);
std::cout << "b33 address: " << blindedKey.ToB33 () << ".b32.i2p" << std::endl;
Expand Down

0 comments on commit 3096905

Please sign in to comment.