go2hx

manual

github

Module stdgo.crypto.ed25519 has compilation errors, please do not use:

 ERROR  stdgo/_internal/crypto/internal/boring/Boring_unreachable.hx:3: characters 9-64

  3 |         _internal.crypto.internal.boring.sig.Sig_standardCrypto.standardCrypto();
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | Type not found : _internal.crypto.internal.boring.sig.Sig_standardCrypto

 ERROR  stdgo/_internal/crypto/ed25519/Ed25519__sign.hx:12: characters 23-84

 12 |         var __tmp__ = _internal.crypto.internal.edwards25519.Edwards25519_newScalar.newScalar().setBytesWithClamping((_h.__slice__(0, (32 : stdgo.GoInt)) : stdgo.Slice<stdgo.GoUInt8>)), _s:stdgo.Ref<_internal.crypto.internal.edwards25519.Edwards25519_Scalar.Scalar> = __tmp__._0, _err:stdgo.Error = __tmp__._1;
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | Type not found : _internal.crypto.internal.edwards25519.Edwards25519_newScalar

 ERROR  stdgo/_internal/crypto/ed25519/Ed25519__sign.hx:12: characters 200-265

 12 |         var __tmp__ = _internal.crypto.internal.edwards25519.Edwards25519_newScalar.newScalar().setBytesWithClamping((_h.__slice__(0, (32 : stdgo.GoInt)) : stdgo.Slice<stdgo.GoUInt8>)), _s:stdgo.Ref<_internal.crypto.internal.edwards25519.Edwards25519_Scalar.Scalar> = __tmp__._0, _err:stdgo.Error = __tmp__._1;
    |                                                                                                                                                                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | Type not found : _internal.crypto.internal.edwards25519.Edwards25519_Scalar

 ERROR  stdgo/_internal/crypto/ed25519/Ed25519__sign.hx:27: characters 23-84

 27 |         var __tmp__ = _internal.crypto.internal.edwards25519.Edwards25519_newScalar.newScalar().setUniformBytes(_messageDigest), _r:stdgo.Ref<_internal.crypto.internal.edwards25519.Edwards25519_Scalar.Scalar> = __tmp__._0, _err:stdgo.Error = __tmp__._1;
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | Type not found : _internal.crypto.internal.edwards25519.Edwards25519_newScalar

 ERROR  stdgo/_internal/crypto/ed25519/Ed25519__sign.hx:27: characters 143-208

 27 |         var __tmp__ = _internal.crypto.internal.edwards25519.Edwards25519_newScalar.newScalar().setUniformBytes(_messageDigest), _r:stdgo.Ref<_internal.crypto.internal.edwards25519.Edwards25519_Scalar.Scalar> = __tmp__._0, _err:stdgo.Error = __tmp__._1;
    |                                                                                                                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | Type not found : _internal.crypto.internal.edwards25519.Edwards25519_Scalar

 ERROR  stdgo/_internal/crypto/ed25519/Ed25519__sign.hx:31: characters 185-248

 31 |         var r = (stdgo.Go.setRef((new _internal.crypto.internal.edwards25519.Edwards25519_Point.Point() : _internal.crypto.internal.edwards25519.Edwards25519_Point.Point)) : stdgo.Ref<_internal.crypto.internal.edwards25519.Edwards25519_Point.Point>).scalarBaseMult(_r);
    |                                                                                                                                                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | Type not found : _internal.crypto.internal.edwards25519.Edwards25519_Point

 ERROR  stdgo/_internal/crypto/ed25519/Ed25519__sign.hx:43: characters 23-84

 43 |         var __tmp__ = _internal.crypto.internal.edwards25519.Edwards25519_newScalar.newScalar().setUniformBytes(_hramDigest), _k:stdgo.Ref<_internal.crypto.internal.edwards25519.Edwards25519_Scalar.Scalar> = __tmp__._0, _err:stdgo.Error = __tmp__._1;
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | Type not found : _internal.crypto.internal.edwards25519.Edwards25519_newScalar

 ERROR  stdgo/_internal/crypto/ed25519/Ed25519__sign.hx:43: characters 140-205

 43 |         var __tmp__ = _internal.crypto.internal.edwards25519.Edwards25519_newScalar.newScalar().setUniformBytes(_hramDigest), _k:stdgo.Ref<_internal.crypto.internal.edwards25519.Edwards25519_Scalar.Scalar> = __tmp__._0, _err:stdgo.Error = __tmp__._1;
    |                                                                                                                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | Type not found : _internal.crypto.internal.edwards25519.Edwards25519_Scalar

 ERROR  stdgo/_internal/crypto/ed25519/Ed25519__sign.hx:47: characters 17-78

 47 |         var s = _internal.crypto.internal.edwards25519.Edwards25519_newScalar.newScalar().multiplyAdd(_k, _s, _r);
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | Type not found : _internal.crypto.internal.edwards25519.Edwards25519_newScalar

 ERROR  stdgo/_internal/crypto/ed25519/Ed25519__newKeyFromSeed.hx:10: characters 23-84

 10 |         var __tmp__ = _internal.crypto.internal.edwards25519.Edwards25519_newScalar.newScalar().setBytesWithClamping((_h.__slice__(0, (32 : stdgo.GoInt)) : stdgo.Slice<stdgo.GoUInt8>)), _s:stdgo.Ref<_internal.crypto.internal.edwards25519.Edwards25519_Scalar.Scalar> = __tmp__._0, _err:stdgo.Error = __tmp__._1;
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | Type not found : _internal.crypto.internal.edwards25519.Edwards25519_newScalar

 ERROR  stdgo/_internal/crypto/ed25519/Ed25519__newKeyFromSeed.hx:10: characters 200-265

 10 |         var __tmp__ = _internal.crypto.internal.edwards25519.Edwards25519_newScalar.newScalar().setBytesWithClamping((_h.__slice__(0, (32 : stdgo.GoInt)) : stdgo.Slice<stdgo.GoUInt8>)), _s:stdgo.Ref<_internal.crypto.internal.edwards25519.Edwards25519_Scalar.Scalar> = __tmp__._0, _err:stdgo.Error = __tmp__._1;
    |                                                                                                                                                                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | Type not found : _internal.crypto.internal.edwards25519.Edwards25519_Scalar

 ERROR  stdgo/_internal/crypto/ed25519/Ed25519__newKeyFromSeed.hx:14: characters 185-248

 14 |         var a = (stdgo.Go.setRef((new _internal.crypto.internal.edwards25519.Edwards25519_Point.Point() : _internal.crypto.internal.edwards25519.Edwards25519_Point.Point)) : stdgo.Ref<_internal.crypto.internal.edwards25519.Edwards25519_Point.Point>).scalarBaseMult(_s);
    |                                                                                                                                                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | Type not found : _internal.crypto.internal.edwards25519.Edwards25519_Point

 ERROR  stdgo/_internal/crypto/ed25519/Ed25519__verify.hx:12: characters 191-254

 12 |         var __tmp__ = (stdgo.Go.setRef((new _internal.crypto.internal.edwards25519.Edwards25519_Point.Point() : _internal.crypto.internal.edwards25519.Edwards25519_Point.Point)) : stdgo.Ref<_internal.crypto.internal.edwards25519.Edwards25519_Point.Point>).setBytes(_publicKey), a:stdgo.Ref<_internal.crypto.internal.edwards25519.Edwards25519_Point.Point> = __tmp__._0, _err:stdgo.Error = __tmp__._1;
    |                                                                                                                                                                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | Type not found : _internal.crypto.internal.edwards25519.Edwards25519_Point

 ERROR  stdgo/_internal/crypto/ed25519/Ed25519__verify.hx:12: characters 291-354

 12 |         var __tmp__ = (stdgo.Go.setRef((new _internal.crypto.internal.edwards25519.Edwards25519_Point.Point() : _internal.crypto.internal.edwards25519.Edwards25519_Point.Point)) : stdgo.Ref<_internal.crypto.internal.edwards25519.Edwards25519_Point.Point>).setBytes(_publicKey), a:stdgo.Ref<_internal.crypto.internal.edwards25519.Edwards25519_Point.Point> = __tmp__._0, _err:stdgo.Error = __tmp__._1;
    |                                                                                                                                                                                                                                                                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | Type not found : _internal.crypto.internal.edwards25519.Edwards25519_Point

 ERROR  stdgo/_internal/crypto/ed25519/Ed25519__verify.hx:27: characters 23-84

 27 |         var __tmp__ = _internal.crypto.internal.edwards25519.Edwards25519_newScalar.newScalar().setUniformBytes(_hramDigest), _k:stdgo.Ref<_internal.crypto.internal.edwards25519.Edwards25519_Scalar.Scalar> = __tmp__._0, _err:stdgo.Error = __tmp__._1;
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | Type not found : _internal.crypto.internal.edwards25519.Edwards25519_newScalar

 ERROR  stdgo/_internal/crypto/ed25519/Ed25519__verify.hx:27: characters 140-205

 27 |         var __tmp__ = _internal.crypto.internal.edwards25519.Edwards25519_newScalar.newScalar().setUniformBytes(_hramDigest), _k:stdgo.Ref<_internal.crypto.internal.edwards25519.Edwards25519_Scalar.Scalar> = __tmp__._0, _err:stdgo.Error = __tmp__._1;
    |                                                                                                                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | Type not found : _internal.crypto.internal.edwards25519.Edwards25519_Scalar

 ERROR  stdgo/_internal/crypto/ed25519/Ed25519__verify.hx:31: characters 23-84

 31 |         var __tmp__ = _internal.crypto.internal.edwards25519.Edwards25519_newScalar.newScalar().setCanonicalBytes((_sig.__slice__((32 : stdgo.GoInt)) : stdgo.Slice<stdgo.GoUInt8>)), s:stdgo.Ref<_internal.crypto.internal.edwards25519.Edwards25519_Scalar.Scalar> = __tmp__._0, _err:stdgo.Error = __tmp__._1;
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | Type not found : _internal.crypto.internal.edwards25519.Edwards25519_newScalar

 ERROR  stdgo/_internal/crypto/ed25519/Ed25519__verify.hx:31: characters 195-260

 31 |         var __tmp__ = _internal.crypto.internal.edwards25519.Edwards25519_newScalar.newScalar().setCanonicalBytes((_sig.__slice__((32 : stdgo.GoInt)) : stdgo.Slice<stdgo.GoUInt8>)), s:stdgo.Ref<_internal.crypto.internal.edwards25519.Edwards25519_Scalar.Scalar> = __tmp__._0, _err:stdgo.Error = __tmp__._1;
    |                                                                                                                                                                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | Type not found : _internal.crypto.internal.edwards25519.Edwards25519_Scalar

 ERROR  stdgo/_internal/crypto/ed25519/Ed25519__verify.hx:35: characters 191-254

 35 |         var _minusA = (stdgo.Go.setRef((new _internal.crypto.internal.edwards25519.Edwards25519_Point.Point() : _internal.crypto.internal.edwards25519.Edwards25519_Point.Point)) : stdgo.Ref<_internal.crypto.internal.edwards25519.Edwards25519_Point.Point>).negate(a);
    |                                                                                                                                                                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | Type not found : _internal.crypto.internal.edwards25519.Edwards25519_Point

 ERROR  stdgo/_internal/crypto/ed25519/Ed25519__verify.hx:36: characters 185-248

 36 |         var r = (stdgo.Go.setRef((new _internal.crypto.internal.edwards25519.Edwards25519_Point.Point() : _internal.crypto.internal.edwards25519.Edwards25519_Point.Point)) : stdgo.Ref<_internal.crypto.internal.edwards25519.Edwards25519_Point.Point>).varTimeDoubleScalarBaseMult(_k, _minusA, s);
    |                                                                                                                                                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | Type not found : _internal.crypto.internal.edwards25519.Edwards25519_Point