/* Generated by Nim Compiler v1.2.6 */ /* (c) 2020 Andreas Rumpf */ /* The generated code is subject to the original license. */ /* Compiled for: Linux, amd64, gcc */ /* Command for C compiler: gcc -c -w -pthread -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/install/usr/include -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1/src -DHAVE_CONFIG_H -DHAVE_BUILTIN_EXPECT -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/src -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/inc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/tools -DBR_USE_UNIX_TIME=1 -DBR_USE_URANDOM=1 -DBR_LE_UNALIGNED=1 -DBR_64=1 -DBR_amd64=1 -DBR_INT128=1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/libnatpmp-upstream -DENABLE_STRNATPMPERR -march=native -g3 -Og -O3 -fno-strict-aliasing -fno-ident -I/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib -I/home/runner/work/nim-waku/nim-waku/waku/common -o nimcache/release/wakubridge/@m..@sv1@snode@srpc@skey_storage.nim.c.o nimcache/release/wakubridge/@m..@sv1@snode@srpc@skey_storage.nim.c */ #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix #define nimfr_(x, y) #define nimln_(x, y) typedef struct tyObject_KeyStoragecolonObjectType___AF9bscEQmjh7y9cwwaQZrQAg tyObject_KeyStoragecolonObjectType___AF9bscEQmjh7y9cwwaQZrQAg; typedef struct tyObject_Table__wWSrlvc3gDPfgSDKn9cYA9bg tyObject_Table__wWSrlvc3gDPfgSDKn9cYA9bg; typedef struct tySequence__xvJ8NkuMnexCsYpHCXh2kA tySequence__xvJ8NkuMnexCsYpHCXh2kA; typedef struct tyObject_Table__INV8H59ap8YDpIPMAWnrDwQ tyObject_Table__INV8H59ap8YDpIPMAWnrDwQ; typedef struct tySequence__knpif4V6YAfwnN9bLSEkizQ tySequence__knpif4V6YAfwnN9bLSEkizQ; typedef struct TNimType TNimType; typedef struct TNimNode TNimNode; typedef struct tyObject_KeyGenerationError__5664iDlzftw9buUJw3UvjZA tyObject_KeyGenerationError__5664iDlzftw9buUJw3UvjZA; typedef struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA; typedef struct Exception Exception; typedef struct RootObj RootObj; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; typedef struct tySequence__uB9b75OUPRENsBAu4AnoePA tySequence__uB9b75OUPRENsBAu4AnoePA; typedef struct tyTuple__R5vAMVDYpstJyIqyMgyTmw tyTuple__R5vAMVDYpstJyIqyMgyTmw; typedef struct tyObject_SkKeyPair__11md6PDL9c3Ydro9bo69avH7g tyObject_SkKeyPair__11md6PDL9c3Ydro9bo69avH7g; typedef struct tyObject_SkSecretKey__aKiBFtqo69b60sWLnM5A9c3w tyObject_SkSecretKey__aKiBFtqo69b60sWLnM5A9c3w; typedef struct tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA; typedef struct tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ; typedef struct tyTuple__rKeJwVk2xHg2WlPUsWc9bGw tyTuple__rKeJwVk2xHg2WlPUsWc9bGw; typedef struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA; struct tyObject_Table__wWSrlvc3gDPfgSDKn9cYA9bg {tySequence__xvJ8NkuMnexCsYpHCXh2kA* data; NI counter; }; struct tyObject_Table__INV8H59ap8YDpIPMAWnrDwQ {tySequence__knpif4V6YAfwnN9bLSEkizQ* data; NI counter; }; struct tyObject_KeyStoragecolonObjectType___AF9bscEQmjh7y9cwwaQZrQAg {tyObject_Table__wWSrlvc3gDPfgSDKn9cYA9bg asymKeys; tyObject_Table__INV8H59ap8YDpIPMAWnrDwQ symKeys; }; typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType {NI size; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; NCSTRING name; TNimType* nextType; NI instances; NI sizes; }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode {tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; struct RootObj {TNimType* m_type;}; struct TGenericSeq {NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE]; }; struct Exception { RootObj Sup;Exception* parent; NCSTRING name; NimStringDesc* message; tySequence__uB9b75OUPRENsBAu4AnoePA* trace; Exception* up; }; struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA { Exception Sup;}; struct tyObject_KeyGenerationError__5664iDlzftw9buUJw3UvjZA { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA Sup;}; typedef NU8 tyArray__vEOa9c5qaE9ajWxR5R4zwfQg[32]; struct tyObject_SkSecretKey__aKiBFtqo69b60sWLnM5A9c3w {tyArray__vEOa9c5qaE9ajWxR5R4zwfQg data; }; typedef NU8 tyArray__w5VB8h5K8DB3oWrO5U2wqg[64]; struct tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ {tyArray__w5VB8h5K8DB3oWrO5U2wqg data; }; struct tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA {tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ data; }; struct tyObject_SkKeyPair__11md6PDL9c3Ydro9bo69avH7g {tyObject_SkSecretKey__aKiBFtqo69b60sWLnM5A9c3w seckey; tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA pubkey; }; struct tyTuple__R5vAMVDYpstJyIqyMgyTmw { NI Field0; NimStringDesc* Field1; tyObject_SkKeyPair__11md6PDL9c3Ydro9bo69avH7g Field2; }; struct tyTuple__rKeJwVk2xHg2WlPUsWc9bGw { NI Field0; NimStringDesc* Field1; tyArray__vEOa9c5qaE9ajWxR5R4zwfQg Field2; }; struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {NCSTRING procname; NI line; NCSTRING filename; }; struct tySequence__xvJ8NkuMnexCsYpHCXh2kA { TGenericSeq Sup; tyTuple__R5vAMVDYpstJyIqyMgyTmw data[SEQ_DECL_SIZE];};struct tySequence__knpif4V6YAfwnN9bLSEkizQ { TGenericSeq Sup; tyTuple__rKeJwVk2xHg2WlPUsWc9bGw data[SEQ_DECL_SIZE];};struct tySequence__uB9b75OUPRENsBAu4AnoePA { TGenericSeq Sup; tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data[SEQ_DECL_SIZE];};N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op); static N_NIMCALL(void, Marker_tyRef__rB5AamQlH85IFeJ9bTeplqg)(void* p, NI op); N_LIB_PRIVATE N_NIMCALL(void*, newObj)(TNimType* typ, NI size); N_LIB_PRIVATE N_NIMCALL(void, initTable__SqY1Jy3EwyVPfF9bWZJyjAw)(NI initialSize, tyObject_Table__wWSrlvc3gDPfgSDKn9cYA9bg* Result); N_LIB_PRIVATE N_NIMCALL(void, initTable__rTIF0VxaZRrHzKaygsQWAQ)(NI initialSize, tyObject_Table__INV8H59ap8YDpIPMAWnrDwQ* Result); static N_NIMCALL(void, Marker_tyRef__QRJMl3WAbv8zUsgGvxdWgg)(void* p, NI op); N_LIB_PRIVATE TNimType NTI__AF9bscEQmjh7y9cwwaQZrQAg_; extern TNimType NTI__wWSrlvc3gDPfgSDKn9cYA9bg_; extern TNimType NTI__INV8H59ap8YDpIPMAWnrDwQ_; N_LIB_PRIVATE TNimType NTI__rB5AamQlH85IFeJ9bTeplqg_; extern TNimType NTI__qrLSDoe2oBoAqNtJ9badtnA_; N_LIB_PRIVATE TNimType NTI__5664iDlzftw9buUJw3UvjZA_; N_LIB_PRIVATE TNimType NTI__QRJMl3WAbv8zUsgGvxdWgg_; extern TNimType* nimTypeRoot; static N_NIMCALL(void, Marker_tyRef__rB5AamQlH85IFeJ9bTeplqg)(void* p, NI op) { tyObject_KeyStoragecolonObjectType___AF9bscEQmjh7y9cwwaQZrQAg* a; a = (tyObject_KeyStoragecolonObjectType___AF9bscEQmjh7y9cwwaQZrQAg*)p; nimGCvisit((void*)(*a).asymKeys.data, op); nimGCvisit((void*)(*a).symKeys.data, op);} #line 19 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/rpc/key_storage.nim" N_LIB_PRIVATE N_NIMCALL(tyObject_KeyStoragecolonObjectType___AF9bscEQmjh7y9cwwaQZrQAg*, newKeyStorage__8dGwUIHmPvmRQ58v0tMl9bA)(void) { tyObject_KeyStoragecolonObjectType___AF9bscEQmjh7y9cwwaQZrQAg* result; result = (tyObject_KeyStoragecolonObjectType___AF9bscEQmjh7y9cwwaQZrQAg*)0; #line 20 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/rpc/key_storage.nim" result = (tyObject_KeyStoragecolonObjectType___AF9bscEQmjh7y9cwwaQZrQAg*) newObj((&NTI__rB5AamQlH85IFeJ9bTeplqg_), sizeof(tyObject_KeyStoragecolonObjectType___AF9bscEQmjh7y9cwwaQZrQAg)); #line 21 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/rpc/key_storage.nim" #line 21 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/rpc/key_storage.nim" initTable__SqY1Jy3EwyVPfF9bWZJyjAw(((NI) 64), (&(*result).asymKeys)); #line 22 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/rpc/key_storage.nim" #line 22 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/rpc/key_storage.nim" initTable__rTIF0VxaZRrHzKaygsQWAQ(((NI) 64), (&(*result).symKeys)); return result;} static N_NIMCALL(void, Marker_tyRef__QRJMl3WAbv8zUsgGvxdWgg)(void* p, NI op) { tyObject_KeyGenerationError__5664iDlzftw9buUJw3UvjZA* a; a = (tyObject_KeyGenerationError__5664iDlzftw9buUJw3UvjZA*)p; nimGCvisit((void*)(*a).Sup.Sup.parent, op); nimGCvisit((void*)(*a).Sup.Sup.message, op); nimGCvisit((void*)(*a).Sup.Sup.trace, op); nimGCvisit((void*)(*a).Sup.Sup.up, op);} N_LIB_PRIVATE N_NIMCALL(void, waku_key_storageDatInit000)(void) { #line 999999 "generated_not_to_break_here" static TNimNode* TM__jlCT5C3qch9a9a6neJXripKQ_2_2[2]; static TNimNode TM__jlCT5C3qch9a9a6neJXripKQ_0[4];NTI__AF9bscEQmjh7y9cwwaQZrQAg_.size = sizeof(tyObject_KeyStoragecolonObjectType___AF9bscEQmjh7y9cwwaQZrQAg); NTI__AF9bscEQmjh7y9cwwaQZrQAg_.kind = 18; NTI__AF9bscEQmjh7y9cwwaQZrQAg_.base = 0; NTI__AF9bscEQmjh7y9cwwaQZrQAg_.flags = 2; NTI__AF9bscEQmjh7y9cwwaQZrQAg_.name = "KeyStorage:ObjectType"; NTI__AF9bscEQmjh7y9cwwaQZrQAg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__AF9bscEQmjh7y9cwwaQZrQAg_; TM__jlCT5C3qch9a9a6neJXripKQ_2_2[0] = &TM__jlCT5C3qch9a9a6neJXripKQ_0[1]; TM__jlCT5C3qch9a9a6neJXripKQ_0[1].kind = 1; TM__jlCT5C3qch9a9a6neJXripKQ_0[1].offset = offsetof(tyObject_KeyStoragecolonObjectType___AF9bscEQmjh7y9cwwaQZrQAg, asymKeys); TM__jlCT5C3qch9a9a6neJXripKQ_0[1].typ = (&NTI__wWSrlvc3gDPfgSDKn9cYA9bg_); TM__jlCT5C3qch9a9a6neJXripKQ_0[1].name = "asymKeys"; TM__jlCT5C3qch9a9a6neJXripKQ_2_2[1] = &TM__jlCT5C3qch9a9a6neJXripKQ_0[2]; TM__jlCT5C3qch9a9a6neJXripKQ_0[2].kind = 1; TM__jlCT5C3qch9a9a6neJXripKQ_0[2].offset = offsetof(tyObject_KeyStoragecolonObjectType___AF9bscEQmjh7y9cwwaQZrQAg, symKeys); TM__jlCT5C3qch9a9a6neJXripKQ_0[2].typ = (&NTI__INV8H59ap8YDpIPMAWnrDwQ_); TM__jlCT5C3qch9a9a6neJXripKQ_0[2].name = "symKeys"; TM__jlCT5C3qch9a9a6neJXripKQ_0[0].len = 2; TM__jlCT5C3qch9a9a6neJXripKQ_0[0].kind = 2; TM__jlCT5C3qch9a9a6neJXripKQ_0[0].sons = &TM__jlCT5C3qch9a9a6neJXripKQ_2_2[0]; NTI__AF9bscEQmjh7y9cwwaQZrQAg_.node = &TM__jlCT5C3qch9a9a6neJXripKQ_0[0]; NTI__rB5AamQlH85IFeJ9bTeplqg_.size = sizeof(tyObject_KeyStoragecolonObjectType___AF9bscEQmjh7y9cwwaQZrQAg*); NTI__rB5AamQlH85IFeJ9bTeplqg_.kind = 22; NTI__rB5AamQlH85IFeJ9bTeplqg_.base = (&NTI__AF9bscEQmjh7y9cwwaQZrQAg_); NTI__rB5AamQlH85IFeJ9bTeplqg_.flags = 2; NTI__rB5AamQlH85IFeJ9bTeplqg_.name = "KeyStorage"; NTI__rB5AamQlH85IFeJ9bTeplqg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__rB5AamQlH85IFeJ9bTeplqg_; NTI__rB5AamQlH85IFeJ9bTeplqg_.marker = Marker_tyRef__rB5AamQlH85IFeJ9bTeplqg; NTI__5664iDlzftw9buUJw3UvjZA_.size = sizeof(tyObject_KeyGenerationError__5664iDlzftw9buUJw3UvjZA); NTI__5664iDlzftw9buUJw3UvjZA_.kind = 17; NTI__5664iDlzftw9buUJw3UvjZA_.base = (&NTI__qrLSDoe2oBoAqNtJ9badtnA_); NTI__5664iDlzftw9buUJw3UvjZA_.name = "KeyGenerationError"; NTI__5664iDlzftw9buUJw3UvjZA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__5664iDlzftw9buUJw3UvjZA_; TM__jlCT5C3qch9a9a6neJXripKQ_0[3].len = 0; TM__jlCT5C3qch9a9a6neJXripKQ_0[3].kind = 2; NTI__5664iDlzftw9buUJw3UvjZA_.node = &TM__jlCT5C3qch9a9a6neJXripKQ_0[3]; NTI__QRJMl3WAbv8zUsgGvxdWgg_.size = sizeof(tyObject_KeyGenerationError__5664iDlzftw9buUJw3UvjZA*); NTI__QRJMl3WAbv8zUsgGvxdWgg_.kind = 22; NTI__QRJMl3WAbv8zUsgGvxdWgg_.base = (&NTI__5664iDlzftw9buUJw3UvjZA_); NTI__QRJMl3WAbv8zUsgGvxdWgg_.name = "ref KeyGenerationError"; NTI__QRJMl3WAbv8zUsgGvxdWgg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__QRJMl3WAbv8zUsgGvxdWgg_; NTI__QRJMl3WAbv8zUsgGvxdWgg_.marker = Marker_tyRef__QRJMl3WAbv8zUsgGvxdWgg; }