JSPM

encrypted-types

0.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10116
  • Score
    100M100P100Q153608F
  • License MIT

Encrypted Types for Solidity

Package Exports

  • encrypted-types
  • encrypted-types/EncryptedTypes.sol

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (encrypted-types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

🔐 Encrypted Type Aliases

This repository defines encrypted type aliases.

📘 Overview

These Solidity bytes32 aliases represent encrypted values, used for privacy-preserving smart contracts:

Core Encrypted Types (e*)

type ebool is bytes32;

type euint8 is bytes32;
type euint16 is bytes32;
type euint24 is bytes32;
...
type euint256 is bytes32;

type eint8 is bytes32;
type eint16 is bytes32;
type eint24 is bytes32;
...
type eint256 is bytes32;

type eaddress is bytes32;

type ebytes1 is bytes32;
// ...
type ebytes32 is bytes32;

External Encrypted Types (externalE*)

type externalExternalEbool is bytes32;

type externalEuint8 is bytes32;
type externalEuint16 is bytes32;
type externalEuint24 is bytes32;
...
type externalEuint256 is bytes32;

type externalEint8 is bytes32;
type externalEint16 is bytes32;
type externalEint24 is bytes32;
...
type externalEint256 is bytes32;

type externalEbytes1 is bytes32;
// ...
type externalEbytes32 is bytes32;

These types enable type-safe handling of encrypted data in contracts, support validation via proofs, and integrate with decryption oracles for confidential workflows.

📜 License

MIT