https://github.com/curt/ecto_base58
The ecto_base58 package provides a custom Ecto.Type that makes shorter, friendlier Base58-encoded identifiers visible to the user, while using UUID identifiers in the database.
https://github.com/curt/ecto_base58
base58 ecto elixir
Last synced: 8 months ago
JSON representation
The ecto_base58 package provides a custom Ecto.Type that makes shorter, friendlier Base58-encoded identifiers visible to the user, while using UUID identifiers in the database.
- Host: GitHub
- URL: https://github.com/curt/ecto_base58
- Owner: curt
- License: mit
- Created: 2023-02-17T22:03:56.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T02:26:57.000Z (over 3 years ago)
- Last Synced: 2025-01-19T22:38:43.724Z (over 1 year ago)
- Topics: base58, ecto, elixir
- Language: Elixir
- Homepage: https://github.com/curt/ecto_base58
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ecto_base58
The `ecto_base58` package provides the `EctoBase58` module,
which defines a custom `Ecto.Type` that makes shorter, friendlier
Base58-encoded identifiers visible to the user, while mapping to the commonly used
`UUID` identifiers in the database.
The `ecto_base58` relies on the `base_58_check` package to provide the
Base58 conversion, using the same alphabet used by Bitcoin identifiers.
## Installation
The package can be installed by adding `ecto_base58` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:ecto_base58, git: "https://github.com/curt/ecto_base58.git"}
]
end
```
## Roadmap
The package still needs to be uploaded to https://hex.pm.
A few more tests would be nice.
## About
The package author and maintainer is [Curt Gilman](https://github.com/curt).
It was extracted from another project that has yet to be released.
It is licensed under the MIT License, for now at least.