kipcole9 / digital_token

Elixir integration for ISO 24165 Digital Tokens through the DTIF registry data
Other
7 stars 2 forks source link

Custom tokens #3

Open ayrat555 opened 10 months ago

ayrat555 commented 10 months ago

Hello.

it seems it's not possible to define custom currencies if they're not in ISO 24165

kipcole9 commented 10 months ago

Can you give me an example of what you’re trying to do, and what behaviour you’re expecting?

ayrat555 commented 10 months ago

For example, I created a custom token called KIPCOLE9. How can I use it with digital_token?

kipcole9 commented 10 months ago

This library is, by design, only intended to wrap the ISO 24165 token registry. It does not provide functionality to define tokens and its not a design goal to do so.

It is possible to create custom currencies in ex_money with the Money.new/3 function. Maybe this will be enough for your needs?