Skip to content

Add PrivateKey accessor to KeyPair #14

@mtmk

Description

@mtmk

Summary

The Go KeyPair interface exposes PrivateKey() ([]byte, error) to retrieve the encoded private key. The .NET KeyPair class does not have an equivalent method.

Approach

Add a GetPrivateKey() method to KeyPair, following the naming convention of the existing GetSeed() and GetPublicKey() methods. Should throw NKeysException when no private key is available (e.g., public-key-only instances).

Purely additive — no existing API changes needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions