├── .eslintrc.cjs ├── .github └── workflows │ └── build.yml ├── .gitignore ├── LICENSE-APACHE ├── LICENSE-MIT ├── README.md ├── SECURITY.md ├── jest.config.ts ├── package.json ├── src ├── age │ ├── age-encrypt-decrypt.ts │ ├── age-reader-writer.ts │ ├── armor.ts │ ├── no-op-encdec.ts │ ├── stream-cipher.ts │ ├── utils-crypto.ts │ └── utils.ts ├── crypto │ ├── fp.ts │ ├── ibe.ts │ └── utils.ts ├── drand │ ├── defaults.ts │ ├── index.d.ts │ ├── timelock-decrypter.ts │ └── timelock-encrypter.ts ├── index.ts ├── types │ └── js-chacha20 │ │ └── index.d.ts └── version.ts ├── test ├── age │ ├── age-encrypt-decrypt.test.ts │ ├── age-reader-writer.test.ts │ ├── armor.test.ts │ ├── compatibility.test.ts │ ├── stream-cipher.test.ts │ └── util.test.ts ├── crypto │ ├── ibe.test.ts │ ├── point.test.ts │ └── rfc-scheme.test.ts ├── drand │ ├── integration.test.ts │ ├── mock-drand-client.ts │ ├── timelock-decrypter.test.ts │ ├── timelock-encrypter.test.ts │ └── timelock.test.ts └── utils.ts └── tsconfig.json /.eslintrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/.eslintrc.cjs -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/LICENSE-APACHE -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/LICENSE-MIT -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/SECURITY.md -------------------------------------------------------------------------------- /jest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/jest.config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/package.json -------------------------------------------------------------------------------- /src/age/age-encrypt-decrypt.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/src/age/age-encrypt-decrypt.ts -------------------------------------------------------------------------------- /src/age/age-reader-writer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/src/age/age-reader-writer.ts -------------------------------------------------------------------------------- /src/age/armor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/src/age/armor.ts -------------------------------------------------------------------------------- /src/age/no-op-encdec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/src/age/no-op-encdec.ts -------------------------------------------------------------------------------- /src/age/stream-cipher.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/src/age/stream-cipher.ts -------------------------------------------------------------------------------- /src/age/utils-crypto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/src/age/utils-crypto.ts -------------------------------------------------------------------------------- /src/age/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/src/age/utils.ts -------------------------------------------------------------------------------- /src/crypto/fp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/src/crypto/fp.ts -------------------------------------------------------------------------------- /src/crypto/ibe.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/src/crypto/ibe.ts -------------------------------------------------------------------------------- /src/crypto/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/src/crypto/utils.ts -------------------------------------------------------------------------------- /src/drand/defaults.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/src/drand/defaults.ts -------------------------------------------------------------------------------- /src/drand/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/src/drand/index.d.ts -------------------------------------------------------------------------------- /src/drand/timelock-decrypter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/src/drand/timelock-decrypter.ts -------------------------------------------------------------------------------- /src/drand/timelock-encrypter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/src/drand/timelock-encrypter.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/types/js-chacha20/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/src/types/js-chacha20/index.d.ts -------------------------------------------------------------------------------- /src/version.ts: -------------------------------------------------------------------------------- 1 | export const LIB_VERSION = "0.9.0"; 2 | -------------------------------------------------------------------------------- /test/age/age-encrypt-decrypt.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/test/age/age-encrypt-decrypt.test.ts -------------------------------------------------------------------------------- /test/age/age-reader-writer.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/test/age/age-reader-writer.test.ts -------------------------------------------------------------------------------- /test/age/armor.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/test/age/armor.test.ts -------------------------------------------------------------------------------- /test/age/compatibility.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/test/age/compatibility.test.ts -------------------------------------------------------------------------------- /test/age/stream-cipher.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/test/age/stream-cipher.test.ts -------------------------------------------------------------------------------- /test/age/util.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/test/age/util.test.ts -------------------------------------------------------------------------------- /test/crypto/ibe.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/test/crypto/ibe.test.ts -------------------------------------------------------------------------------- /test/crypto/point.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/test/crypto/point.test.ts -------------------------------------------------------------------------------- /test/crypto/rfc-scheme.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/test/crypto/rfc-scheme.test.ts -------------------------------------------------------------------------------- /test/drand/integration.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/test/drand/integration.test.ts -------------------------------------------------------------------------------- /test/drand/mock-drand-client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/test/drand/mock-drand-client.ts -------------------------------------------------------------------------------- /test/drand/timelock-decrypter.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/test/drand/timelock-decrypter.test.ts -------------------------------------------------------------------------------- /test/drand/timelock-encrypter.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/test/drand/timelock-encrypter.test.ts -------------------------------------------------------------------------------- /test/drand/timelock.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/test/drand/timelock.test.ts -------------------------------------------------------------------------------- /test/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/test/utils.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drand/tlock-js/HEAD/tsconfig.json --------------------------------------------------------------------------------