@blockchaincommons/components - v1.0.0-beta.4
    Preparing search index...

    Type Alias SshPublicKeyData

    SshPublicKeyData:
        | { kind: "ed25519"; pubBytes: Uint8Array }
        | { kind: "ecdsa"; curve: SshEcdsaCurve; point: Uint8Array }
        | {
            kind: "dsa";
            p: Uint8Array;
            q: Uint8Array;
            g: Uint8Array;
            y: Uint8Array;
        }
        | { kind: "rsa"; e: Uint8Array; n: Uint8Array }

    Internal discriminated union for the algorithm-specific public-key data.

    • ed25519: the 32-byte raw public key.
    • ecdsa: curve + 65/97/133-byte SEC1 uncompressed point.
    • dsa: four canonical-positive mpint bytes (p, q, g, y) — sign byte already stripped on parse, re-added by the writer.
    • rsa: canonical-positive e and n.

    Type Declaration

    • { kind: "ed25519"; pubBytes: Uint8Array }
      • kind: "ed25519"

        ssh-ed25519.

      • pubBytes: Uint8Array

        The 32 raw public key bytes.

    • { kind: "ecdsa"; curve: SshEcdsaCurve; point: Uint8Array }
      • kind: "ecdsa"

        ecdsa-sha2-nistp256 / ecdsa-sha2-nistp384 / ecdsa-sha2-nistp521.

      • curve: SshEcdsaCurve

        The NIST curve.

      • point: Uint8Array

        The SEC1 uncompressed point (65, 97 or 133 bytes).

    • { kind: "dsa"; p: Uint8Array; q: Uint8Array; g: Uint8Array; y: Uint8Array }
      • kind: "dsa"

        ssh-dss.

      • p: Uint8Array

        The prime modulus, canonical positive bytes.

      • q: Uint8Array

        The subgroup order, canonical positive bytes.

      • g: Uint8Array

        The generator, canonical positive bytes.

      • y: Uint8Array

        The public value, canonical positive bytes.

    • { kind: "rsa"; e: Uint8Array; n: Uint8Array }
      • kind: "rsa"

        ssh-rsa.

      • e: Uint8Array

        The public exponent, canonical positive bytes.

      • n: Uint8Array

        The modulus, canonical positive bytes.