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.
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 CRC16EncodeSeed(prefix, src)— encode a 32-byte seed with prefix and CRC16Decode(expectedPrefix, src)— decode and verify prefixDecodeSeed(src)— decode seed and extract type prefixPrefix(src)— extract prefix type from an encoded keyThe .NET library has
Base32encoding but does not expose the higher-level key encoding/decoding with prefix and CRC16 validation.Approach
Add public static methods (on
KeyPairor a new utility class). Purely additive — no existing API changes needed.