Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce separate types for different keys #72

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Commits on May 31, 2023

  1. NOnion: introduced expanded blinded key types

    Introduced types for public and private expanded blinded keys
    that wrap byte array representation of those keys.
    Use those types instead of raw byte arrays.
    This should improve code clarity and potentially, safety.
    webwarrior-ws committed May 31, 2023
    Configuration menu
    Copy the full SHA
    3ba510c View commit details
    Browse the repository at this point in the history
  2. NOnion: changed some types used for keys

    Introduced NTorOnionKey type that wraps byte array and use it
    where applicable.
    Use Ed25519PublicKeyParameters instead of byte array for
    IntroductionPointInfo.MasterPublicKey.
    This should improve code clarity and potentially, safety.
    webwarrior-ws committed May 31, 2023
    Configuration menu
    Copy the full SHA
    a37f69c View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2023

  1. NOnion: introduced IdentityKey type

    Introduced IdentityKey type that wraps byte array and use it
    where applicable.
    This should improve code clarity and potentially, safety.
    webwarrior-ws committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    1fc0305 View commit details
    Browse the repository at this point in the history
  2. Services: refactoring

    Renamed OnionKey to NTorOnionKey in IntroductionPointInfo.
    webwarrior-ws committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    d62958b View commit details
    Browse the repository at this point in the history
  3. NOnion: make NTorOnionKey validate length

    Make NTorOnionKey type validate key length on creation.
    webwarrior-ws committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    5e22cc4 View commit details
    Browse the repository at this point in the history
  4. NOnion: make IdentityKey validate length

    Make IdentityKey type validate key length on creation.
    Improve error message for wrong key length.
    webwarrior-ws committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    871bf87 View commit details
    Browse the repository at this point in the history
  5. NOnion: renamed ExpandedBlindedPublicKey

    Renamed ExpandedBlindedPublicKey to BlindedPublicKey.
    webwarrior-ws committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    ff994c7 View commit details
    Browse the repository at this point in the history
  6. NOnion: key types refactoring

    Renamed ExpandedBlindedPrivateKey to Ed25519PrivateKey,
    which now can be either NormalEd25519PrivateKey or
    ExpandedEd25519PrivateKey.
    Implemented length checks for both.
    Renamed BlindedPublicKey to ED25519PublicKey.
    webwarrior-ws committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    6963b36 View commit details
    Browse the repository at this point in the history
  7. NOnion: use BouncyCastle types

    Use BouncyCastle types for Ed25519PrivateKey.NormalEd25519
    and ED25519PublicKey.
    webwarrior-ws committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    269e6e1 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2023

  1. NOnion: minor refactoring

    Renamed IdentityKey type to Fingerprint as technically this is
    the digest of identity key.
    webwarrior-ws committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    7e325e9 View commit details
    Browse the repository at this point in the history