<PackageReference Include="BouncyCastle.Cryptography" Version="2.7.0" />

Org.BouncyCastle.Crypto.Parameters.SlhDsaPrivateKeyParameters

SLH-DSA private key (FIPS 205). Holds the (SK.seed, SK.prf, PK.seed, PK.root) tuple — the signing seed and PRF key together with a copy of the public key needed for hypertree verification during signing.
public static SlhDsaPrivateKeyParameters FromEncoding(SlhDsaParameters parameters, byte[] encoding)

Decode a private key from its concatenated SK.seed || SK.prf || PK.seed || PK.root byte representation. The expected length is 4 * n for the chosen parameter set.

public byte[] GetEncoded()

Return a fresh copy of the concatenated SK.seed || SK.prf || PK.seed || PK.root encoding.

Return the public key embedded in this private key.

public byte[] GetPublicKeyEncoded()

Return a fresh copy of the public key portion (seed || root).