Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Maciej Łoziński
    @loziniak
    Hey. Any ideas how random/secure should be implemented? I'm currently in need of it, and could spend some time on implementation.
    Maciej Łoziński
    @loziniak
    Would it be sufficient to use AES in CTR mode with IV and key initialized from /dev/random?
    Boleslav Březovský
    @rebolek
    This may be a question for @BeardPower . Cryptography is hard.
    Maciej Łoziński
    @loziniak
    Or perhaps just using /dev/urandom is ok? In lack of entropy in Linux ChaCha20 is used (kernel > 4.8), Yarrow in macOS and Fortuna in FreeBSD, so generally, it should be secure. And in Windows there is CryptGenRandom, also meant to be secure.
    Boleslav Březovský
    @rebolek
    That's probably the way to go, Red tries to use OS functions whenever possible, so it's a good start. If there are problems, it can be improved later, but it's IMO better than having no random/secure at all.
    Gregg Irwin
    @greggirwin
    Agreed.
    Maciej Łoziński
    @loziniak
    Just implemented random/secure: red/red#4309
    Based on crypto/urandom.
    Pavel R.
    @proksi21
    Great news!
    Gregg Irwin
    @greggirwin
    :+1:
    BeardPower
    @BeardPower
    Awesome!
    Gringo
    @15926222352
    It's been a long time since the red project team. Are you ok
    It seems that the blockchain project in 2018 is very difficult
    Gregg Irwin
    @greggirwin
    We're OK. Best laid plans are just that. As the world has changed, we've adjusted as best we can. C3 is still in our plans, and we wish (more than anyone on the outside) that it was in a state we could release.
    Gringo
    @15926222352
    When can I release it? I've been waiting for two years
    Gregg Irwin
    @greggirwin
    We don't have a release date set at this time.
    Cong Ye
    @siriusye
    No matter c3 will be released or not, the token is surely a loss for majority of ico participants.
    good luck with the funding and hopefully it can support the team to do something good. Under the current market, there wont be such chance anymore in the future.
    Gringo
    @15926222352
    @siriusye Indeed, as you said, tokens are a nightmare for ICO participants
    Maciej Łoziński
    @loziniak
    Hi! Can money! extendable by custom currencies?
    Semseddin Moldibi
    @endo64
    Yes
    >> probe system/locale/currencies/list
    [
        AED AFN ALL AMD ANG AOA ARS AUD AWG AZN BAM BBD BDT BTC BGN BHD BIF BMD BND BOB BRL BSD
        BTN BWP BYN BZD CAD CDF CHF CKD CLP CNY COP CRC CUC CUP CVE CZK DJF DKK DOP DZD EGP ERN
        ETB ETH EUR FJD FKP FOK GBP GEL GGP GHS GIP GMD GNF GTQ GYD HKD HNL HRK HTG HUF IDR ILS
        IMP INR IQD IRR ISK JEP JMD JOD JPY KES KGS KHR KID KMF KPW KRW KWD KYD KZT LAK LBP LKR
        LRD LSL LYD MAD MDL MGA MKD MMK MNT MOP MRU MUR MVR MWK MXN MYR MZN NAD NGN NIO NOK NPR
        NZD OMR PAB PEN PGK PHP PKR PLN PND PRB PYG QAR RED RON RSD RUB RWF SAR SBD SCR SDG SEK
        SGD SHP SLL SLS SOS SRD SSP STN SYP SZL THB TJS TMT TND TOP TRY TTD TVD TWD TZS UAH UGX
        USD UYU UZS VES VND VUV WST CFA XAF XCD XOF CFP XPF YER ZAR ZMW
    ]
    >> m: XYZ$30
    *** Syntax Error: (line 1) invalid money at XYZ$30
    >> append system/locale/currencies/list 'XYZ
    >> m: XYZ$42
    == XYZ$42.00
    Maciej Łoziński
    @loziniak
    >> append system/locale/currencies/list 'X3MB
    *** Script Error: protected value or series - cannot modify
    *** Where: do
    *** Stack: cause-error
    Semseddin Moldibi
    @endo64
    It has some constraints
    It must be 3 letters
    Maciej Łoziński
    @loziniak
    Any reason for that?
    Semseddin Moldibi
    @endo64
    Here is the code to check that constraints:
    >> ?? system/locale/currencies/on-deep-change*
    system/locale/currencies/on-deep-change*: func [owner word target action new index part][
        if any [
            word <> 'list
            not find [append appended] action
            not word? :new
            all [action = 'append any [find list new 255 < length? list]]
            3 <> length? form new
        ] [cause-error 'script 'protected []]
        if action = 'appended [set-slot-quiet back tail list to word! uppercase form new]
    ]
    3 <> length? form new line.
    It is the official ISO 4217 standard.
    Maciej Łoziński
    @loziniak
    Semseddin Moldibi
    @endo64
    Yes, but it is noted Dash does not conform to any standard.
    Maciej Łoziński
    @loziniak
    :-/
    Semseddin Moldibi
    @endo64
    May be in the future, it may change because of the crypto currencies.
    Also there might be more than 255 currencies but currently it is limited to 255 in Red, which should be enough for most cases.
    Maciej Łoziński
    @loziniak
    thanks, @endo64
    Vladimir Vasilyev
    @9214
    @loziniak see also money! documentation.
    Maciej Łoziński
    @loziniak
    Ah, the mystery is over :-) I've been looking for it in documentation, but there was no link in types list. Thanks :-)
    Btw I made a PR to fix it: red/docs#242
    To the currency discussion – ETH and BTC also do not conform to ISO 4217 standard. Tough decisions, I know :-)
    Maciej Łoziński
    @loziniak
    Also, it seems that numbers are also not allowed in ISO currencies, but there is no check for this in system/locale/currencies/on-deep-change*. So, if we do not comply fully with ISO 4217, why not dropping 3 characters limitation?
    Maciej Łoziński
    @loziniak
    Moreover, ISO 4217 seems to be a complete list of currencies. So it seems that ANY currency not on this list is simply out of standard. Keeping the standard would mean blocking ability to extend the list at all.
    Vladimir Vasilyev
    @9214
    @loziniak RED, BTC and ETH were added on top of ISO 4217 as relatively "mainstream" currencies.
    Maciej Łoziński
    @loziniak
    I'd say DASH is more mainstream than RED ;-)
    Vladimir Vasilyev
    @9214
    @loziniak I don't follow, supporting ISO 4217 doesn't preclude us from allowing user-defined currencies. It's a reference standard, not a mandate. Red complies with it in a sense that it uses the same currency codes, not e.g. DLR for a dollar or ERO for a euro.
    Maciej Łoziński
    @loziniak
    I understand that. All I want to say is when we don't follow the standard strictly, limittation to 3 characters is excessive to me.
    If RED is allowed to be a currency, DASH should also be at least possible to add to the list.
    Vladimir Vasilyev
    @9214

    OK, but without some upper boundary we're setting up a fertile ground for things like MYCOOLTOKEN$1337.

    Anyway, if using currencies with more than 3 letters is something urgent for your project, I can look into that, but the usual procedure is that you open a wish ticket and wait for eons for it to be evaluated and then maybe fulfilled :wink:

    Maciej Łoziński
    @loziniak
    I don't see anything wrong with MYCOOLTOKEN$1337 as long as somebody needs it in his app. Probably we could make a record in wish ticket acceptance speed! :-D
    Vladimir Vasilyev
    @9214

    we don't follow the standard strictly

    As I said, ISO 4217 doesn't mandate that "all the rest of the currency codes not in the list are forbidden to be in use, and if you do use them then you are Bad and you should feel Bad!". By saying that ISO 4217 is supported we say that e.g. PHP is Philippine peso and not some token that PHP Language Foundation decided to create, like Red Foundation did with RED.