@umbra-privacy/numeric-types
v0.1.1
Published
Branded TypeScript numeric types (unsigned/signed integers and BN254 field elements) with a generated, hub-and-spoke any-to-any converter surface. Pre-release (0.x): every API, type and behaviour is subject to change at any time, as and when the Nimbus Pr
Readme
@umbra-privacy/numeric-types
Branded TypeScript numeric types, unsigned and signed integers and BN254 field elements, with a generated converter between any two of them.
Most apps don't install it directly. It is a building block of @umbra-privacy/nimbus-solana-web, which installs it for you.
Pre-release (0.x): every API, type and behaviour is subject to change at any time, as and when the Nimbus Privacy team (built by Umbra Privacy) decides or requires.
Install
pnpm add @umbra-privacy/numeric-typesEntry points
@umbra-privacy/numeric-types: The branded types, their constructors and converters, byte helpers, andUmbraTypeError.@umbra-privacy/numeric-types/types: The hand-written types: type specs, branded byte arrays, byte order and the error's context.@umbra-privacy/numeric-types/generated/types: The generated branded numeric types.
License
Apache-2.0
Nimbus Privacy (built by Umbra Privacy)
