Skip to content

Expose public Encode/Decode/DecodeSeed/EncodeSeed helpers #16

Description

@mtmk

Summary

The Go implementation exposes public encoding/decoding functions for working with keys at a lower level:

  • Encode(prefix, src) — encode raw key bytes with prefix and CRC16
  • EncodeSeed(prefix, src) — encode a 32-byte seed with prefix and CRC16
  • Decode(expectedPrefix, src) — decode and verify prefix
  • DecodeSeed(src) — decode seed and extract type prefix
  • Prefix(src) — extract prefix type from an encoded key

The .NET library has Base32 encoding but does not expose the higher-level key encoding/decoding with prefix and CRC16 validation.

Approach

Add public static methods (on KeyPair or a new utility class). 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