Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Express characteristics of the Wallet as part of the interface #2

Open
placer14 opened this issue May 31, 2018 · 0 comments
Open

Express characteristics of the Wallet as part of the interface #2

placer14 opened this issue May 31, 2018 · 0 comments

Comments

@placer14
Copy link
Member

Some aspects of the wallet should be reflected in the interface. Ex:

  • currency code for the coins
  • does the wallet/coin support time-based redemption scripts
  • maximum coin divisibility (magnitude of smallest fraction of coin)

This data might be represented via a func Config() *wallet.Properties where

type wallet.Properties struct{
 CurrencyCode string
 FeatureTimeBasedRedemptionScripts bool
 MaximumDivisibility uint
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant