diff --git a/dap_chain.c b/dap_chain.c index 282a01fa4f834e983baf297dc85fc8b6125f8bdc..d4452a10a916f4f0ac041426d8cb35ee365226c4 100644 --- a/dap_chain.c +++ b/dap_chain.c @@ -1,6 +1,10 @@ /* - Copyright (c) 2017-2018 (c) Project "DeM Labs Inc" https://github.com/demlabsinc - All rights reserved. + * Authors: + * Dmitriy A. Gearasimov <kahovski@gmail.com> + * DeM Labs Inc. https://demlabs.net + * DeM Labs Open source community https://github.com/demlabsinc + * Copyright (c) 2017-2018 + * All rights reserved. This file is part of DAP (Deus Applications Prototypes) the open source project @@ -19,6 +23,7 @@ */ + #include "dap_chain_internal.h" #include "dap_chain.h" diff --git a/dap_chain.h b/dap_chain.h index 0f40cec69a69078600446169ccbbf16ff040bb24..5e06a5d2d6a8ec08ef2557d4b9670529257da08a 100644 --- a/dap_chain.h +++ b/dap_chain.h @@ -21,6 +21,7 @@ You should have received a copy of the GNU General Public License along with any DAP based project. If not, see <http://www.gnu.org/licenses/>. */ + #pragma once #include "dap_chain_block.h" diff --git a/dap_chain_block.c b/dap_chain_block.c index bc4f0834b733ec6b3113478abf6ca18f5a81b44e..09f95ad1841372976380bd5b5ee421df60d419bd 100644 --- a/dap_chain_block.c +++ b/dap_chain_block.c @@ -1,6 +1,10 @@ /* - Copyright (c) 2017-2018 (c) Project "DeM Labs Inc" https://github.com/demlabsinc - All rights reserved. + * Authors: + * Dmitriy A. Gearasimov <kahovski@gmail.com> + * DeM Labs Inc. https://demlabs.net + * DeM Labs Open source community https://github.com/demlabsinc + * Copyright (c) 2017-2018 + * All rights reserved. This file is part of DAP (Deus Applications Prototypes) the open source project @@ -18,6 +22,7 @@ along with any DAP based project. If not, see <http://www.gnu.org/licenses/>. */ + #include "dap_common.h" #include "dap_chain_block.h" diff --git a/dap_chain_block_txs.c b/dap_chain_block_txs.c index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..a672942990f0be23844bfe82c8fbee1b3ce386ce 100644 --- a/dap_chain_block_txs.c +++ b/dap_chain_block_txs.c @@ -0,0 +1,23 @@ +/* + * Authors: + * Dmitriy A. Gearasimov <kahovski@gmail.com> + * DeM Labs Inc. https://demlabs.net + * DeM Labs Open source community https://github.com/demlabsinc + * Copyright (c) 2017-2018 + * All rights reserved. + + This file is part of DAP (Deus Applications Prototypes) the open source project + + DAP (Deus Applicaions Prototypes) is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + DAP is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with any DAP based project. If not, see <http://www.gnu.org/licenses/>. +*/ diff --git a/dap_chain_block_txs.h b/dap_chain_block_txs.h index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..8bf7f08772fbac06fe6539f3c2ba86e1479a6506 100644 --- a/dap_chain_block_txs.h +++ b/dap_chain_block_txs.h @@ -0,0 +1,24 @@ +/* + * Authors: + * Dmitriy A. Gearasimov <kahovski@gmail.com> + * DeM Labs Inc. https://demlabs.net + * DeM Labs Open source community https://github.com/demlabsinc + * Copyright (c) 2017-2018 + * All rights reserved. + + This file is part of DAP (Deus Applications Prototypes) the open source project + + DAP (Deus Applicaions Prototypes) is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + DAP is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with any DAP based project. If not, see <http://www.gnu.org/licenses/>. +*/ +#pragma once diff --git a/dap_chain_coin.c b/dap_chain_coin.c index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..3ceff1d00e7b7a23b73083efb642fb3043479a53 100644 --- a/dap_chain_coin.c +++ b/dap_chain_coin.c @@ -0,0 +1,24 @@ +/* + * Authors: + * Dmitriy A. Gearasimov <kahovski@gmail.com> + * DeM Labs Inc. https://demlabs.net + * DeM Labs Open source community https://github.com/demlabsinc + * Copyright (c) 2017-2018 + * All rights reserved. + + This file is part of DAP (Deus Applications Prototypes) the open source project + + DAP (Deus Applicaions Prototypes) is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + DAP is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with any DAP based project. If not, see <http://www.gnu.org/licenses/>. +*/ +#include "dap_chain_coin.h" diff --git a/dap_chain_common.h b/dap_chain_common.h index b9a9c8cfc8efa149d0d895e9bf557f93378caf41..81a0699bca20bb4bd4821a9bccfeab1cc117a26b 100644 --- a/dap_chain_common.h +++ b/dap_chain_common.h @@ -35,7 +35,6 @@ typedef union dap_chain_hash{ uint8_t data[DAP_CHAIN_HASH_SIZE]; } dap_chain_hash_t; - typedef union dap_chain_sig_type{ enum { SIG_TYPE_NEWHOPE = 0x0000, diff --git a/dap_chain_section.c b/dap_chain_section.c index 8264ee3210e2141da933c6cfdcbfbb6e6e7b80d5..fd3af365e7466934badcf3a46d66a20f90b8ed61 100644 --- a/dap_chain_section.c +++ b/dap_chain_section.c @@ -1,6 +1,10 @@ /* - Copyright (c) 2017-2018 (c) Project "DeM Labs Inc" https://github.com/demlabsinc - All rights reserved. + * Authors: + * Dmitriy A. Gearasimov <kahovski@gmail.com> + * DeM Labs Inc. https://demlabs.net + * DeM Labs Open source community https://github.com/demlabsinc + * Copyright (c) 2017-2018 + * All rights reserved. This file is part of DAP (Deus Applications Prototypes) the open source project diff --git a/dap_chain_section_roots.c b/dap_chain_section_roots.c index 56382e008f38f894a2d4eee1f68e88f6592d6403..fa093bf31c17f1217b20cd3d8704ac725db090b6 100644 --- a/dap_chain_section_roots.c +++ b/dap_chain_section_roots.c @@ -1,6 +1,10 @@ /* - Copyright (c) 2017-2018 (c) Project "DeM Labs Inc" https://github.com/demlabsinc - All rights reserved. + * Authors: + * Dmitriy A. Gearasimov <kahovski@gmail.com> + * DeM Labs Inc. https://demlabs.net + * DeM Labs Open source community https://github.com/demlabsinc + * Copyright (c) 2017-2018 + * All rights reserved. This file is part of DAP (Deus Applications Prototypes) the open source project @@ -18,6 +22,7 @@ along with any DAP based project. If not, see <http://www.gnu.org/licenses/>. */ + #include "dap_common.h" #include "dap_chain_section_roots.h" diff --git a/dap_chain_section_tx.c b/dap_chain_section_tx.c index 741070145892bfd052fef11b8e5cf73d33dea71b..39e0e02582624a3ce42bc2d468530f07382f15cd 100644 --- a/dap_chain_section_tx.c +++ b/dap_chain_section_tx.c @@ -1,3 +1,27 @@ +/* + * Authors: + * Dmitriy A. Gearasimov <kahovski@gmail.com> + * DeM Labs Inc. https://demlabs.net + * DeM Labs Open source community https://github.com/demlabsinc + * Copyright (c) 2017-2018 + * All rights reserved. + + This file is part of DAP (Deus Applications Prototypes) the open source project + + DAP (Deus Applicaions Prototypes) is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + DAP is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with any DAP based project. If not, see <http://www.gnu.org/licenses/>. +*/ + #include "dap_common.h" #include "dap_chain_section_tx.h" diff --git a/dap_chain_srv.c b/dap_chain_srv.c index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..ca69d99d99cbc5254dffa3b1e5d59d716537b410 100644 --- a/dap_chain_srv.c +++ b/dap_chain_srv.c @@ -0,0 +1,26 @@ +/* + * Authors: + * Dmitriy A. Gearasimov <kahovski@gmail.com> + * DeM Labs Inc. https://demlabs.net + * DeM Labs Open source community https://github.com/demlabsinc + * Copyright (c) 2017-2018 + * All rights reserved. + + This file is part of DAP (Deus Applications Prototypes) the open source project + + DAP (Deus Applicaions Prototypes) is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + DAP is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with any DAP based project. If not, see <http://www.gnu.org/licenses/>. +*/ + +#include "dap_chain_srv.h" + diff --git a/dap_chain_srv.h b/dap_chain_srv.h index a672942990f0be23844bfe82c8fbee1b3ce386ce..8bf7f08772fbac06fe6539f3c2ba86e1479a6506 100644 --- a/dap_chain_srv.h +++ b/dap_chain_srv.h @@ -21,3 +21,4 @@ You should have received a copy of the GNU General Public License along with any DAP based project. If not, see <http://www.gnu.org/licenses/>. */ +#pragma once diff --git a/dap_chain_wallet.c b/dap_chain_wallet.c index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..85327756d9444f410d2e624e451ce70b82c8ac7e 100644 --- a/dap_chain_wallet.c +++ b/dap_chain_wallet.c @@ -0,0 +1,82 @@ +/* + * Authors: + * Dmitriy A. Gearasimov <kahovski@gmail.com> + * DeM Labs Inc. https://demlabs.net + * DeM Labs Open source community https://github.com/demlabsinc + * Copyright (c) 2017-2018 + * All rights reserved. + + This file is part of DAP (Deus Applications Prototypes) the open source project + + DAP (Deus Applicaions Prototypes) is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + DAP is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with any DAP based project. If not, see <http://www.gnu.org/licenses/>. +*/ + +#include "dap_common.h" +#include "dap_chain_wallet.h" +#include "dap_chain_wallet_internal.h" + +#define LOG_TAG "dap_chain_wallet" + +/** + * @brief dap_chain_wallet_open + * @param a_file_name + * @param a_sig_type + * @details Creates new one if not found + * @return Wallet, new wallet or NULL if errors + */ +dap_chain_wallet_t * dap_chain_wallet_open(const char * a_file_name, dap_chain_sig_type_t a_sig_type) +{ + dap_chain_wallet_t * l_wallet = DAP_NEW_Z(dap_chain_wallet_t); + DAP_CHAIN_WALLET_INTERNAL_LOCAL_NEW(l_wallet); + return l_wallet; +} + +/** + * @brief dap_chain_wallet_close + * @param a_wallet + */ +void dap_chain_wallet_close( dap_chain_wallet_t * a_wallet) +{ + DAP_CHAIN_WALLET_INTERNAL_LOCAL(a_wallet); + DAP_DELETE(l_wallet_internal); + DAP_DELETE(a_wallet); +} + +/** + * @brief dap_chain_wallet_get_pkey + * @param a_wallet + * @param a_pkey + * @param a_pkey_size_max + * @return 0 if everything is ok, negative value if error + */ +int dap_chain_wallet_get_pkey( dap_chain_wallet_t * a_wallet, void * a_pkey, size_t a_pkey_size_max) +{ + return 0; +} + +/** + * @brief dap_chain_wallet_sign + * @param a_wallet + * @param a_data + * @param a_data_size + * @param a_sign + * @param a_sign_size_max + * @return 0 if everything is ok, negative value if error + */ +int dap_chain_wallet_sign( dap_chain_wallet_t * a_wallet, const void * a_data, size_t a_data_size, + void * a_sign, size_t a_sign_size_max) +{ + + return 0; +} diff --git a/dap_chain_wallet.h b/dap_chain_wallet.h index a672942990f0be23844bfe82c8fbee1b3ce386ce..c0ebad5cd085507a6ab88ed8d6672ec2172a93d5 100644 --- a/dap_chain_wallet.h +++ b/dap_chain_wallet.h @@ -21,3 +21,18 @@ You should have received a copy of the GNU General Public License along with any DAP based project. If not, see <http://www.gnu.org/licenses/>. */ + +#pragma once +#include "dap_chain_common.h" +typedef struct dap_chain_wallet{ + void * _internal; + void * _inheritor; +} dap_chain_wallet_t; + +dap_chain_wallet_t * dap_chain_wallet_open(const char * a_file_name, dap_chain_sig_type_t a_sig_type); // Creates new one if not found +void dap_chain_wallet_close( dap_chain_wallet_t * a_wallet); + +int dap_chain_wallet_get_pkey( dap_chain_wallet_t * a_wallet, void * a_pkey, size_t a_pkey_size_max); + +int dap_chain_wallet_sign( dap_chain_wallet_t * a_wallet, const void * a_data, size_t a_data_size, void * a_sign, size_t a_sign_size_max); + diff --git a/dap_chain_wallet_internal.h b/dap_chain_wallet_internal.h index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..4a5950b4d1ddaecfb9e6487ac4411a72ff9946e2 100644 --- a/dap_chain_wallet_internal.h +++ b/dap_chain_wallet_internal.h @@ -0,0 +1,41 @@ +/* + * Authors: + * Dmitriy A. Gearasimov <kahovski@gmail.com> + * DeM Labs Inc. https://demlabs.net + * DeM Labs Open source community https://github.com/demlabsinc + * Copyright (c) 2017-2018 + * All rights reserved. + + This file is part of DAP (Deus Applications Prototypes) the open source project + + DAP (Deus Applicaions Prototypes) is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + DAP is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with any DAP based project. If not, see <http://www.gnu.org/licenses/>. +*/ + +#pragma once + +#include "dap_chain_common.h" + +#include "dap_chain_wallet.h" + +typedef struct dap_chain_wallet_internal +{ + dap_chain_addr_t addr; + char * file_name; +} dap_chain_wallet_internal_t; + +#define DAP_CHAIN_WALLET_INTERNAL(a) ((dap_chain_wallet_internal_t *) a->_internal ) + +#define DAP_CHAIN_WALLET_INTERNAL_LOCAL(a) dap_chain_wallet_internal_t * l_wallet_internal = DAP_CHAIN_WALLET_INTERNAL(a) + +#define DAP_CHAIN_WALLET_INTERNAL_LOCAL_NEW(a) dap_chain_wallet_internal_t * l_wallet_internal = DAP_NEW_Z(dap_chain_wallet_internal_t); a->_internal = l_wallet_internal diff --git a/dap_hash.c b/dap_hash.c index c8d3a7fe202d11b8615982122e7fe4211b17b687..cb4396336f1e848a401de772fc78874a75f00573 100644 --- a/dap_hash.c +++ b/dap_hash.c @@ -1,3 +1,27 @@ +/* + * Authors: + * Dmitriy A. Gearasimov <kahovski@gmail.com> + * DeM Labs Inc. https://demlabs.net + * DeM Labs Open source community https://github.com/demlabsinc + * Copyright (c) 2017-2018 + * All rights reserved. + + This file is part of DAP (Deus Applications Prototypes) the open source project + + DAP (Deus Applicaions Prototypes) is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + DAP is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with any DAP based project. If not, see <http://www.gnu.org/licenses/>. +*/ + #include "dap_common.h" #include "dap_hash.h" diff --git a/dap_hash.h b/dap_hash.h index a3b57560b9731fb32a8dd50a9276983150a371bf..5918195264986ac98f5c4f470f60708227d42517 100644 --- a/dap_hash.h +++ b/dap_hash.h @@ -1,5 +1,27 @@ -#ifndef _DAP_HASH_H_ -#define _DAP_HASH_H_ +/* + * Authors: + * Dmitriy A. Gearasimov <kahovski@gmail.com> + * DeM Labs Inc. https://demlabs.net + * DeM Labs Open source community https://github.com/demlabsinc + * Copyright (c) 2017-2018 + * All rights reserved. + + This file is part of DAP (Deus Applications Prototypes) the open source project + + DAP (Deus Applicaions Prototypes) is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + DAP is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with any DAP based project. If not, see <http://www.gnu.org/licenses/>. +*/ +#pragma once #include <stddef.h> #include "dap_hash_slow.h" @@ -27,4 +49,3 @@ inline void dap_hash(void * a_data_in, size_t a_data_in_size, } } -#endif diff --git a/dap_hash_fusion.c b/dap_hash_fusion.c index e1a46eeb2b08b80fc558ff0fda3ab41cfd192087..a6e107f6fdbf9f52f2309bdcc0e88e0959ea258b 100644 --- a/dap_hash_fusion.c +++ b/dap_hash_fusion.c @@ -1,3 +1,27 @@ +/* + * Authors: + * Dmitriy A. Gearasimov <kahovski@gmail.com> + * DeM Labs Inc. https://demlabs.net + * DeM Labs Open source community https://github.com/demlabsinc + * Copyright (c) 2017-2018 + * All rights reserved. + + This file is part of DAP (Deus Applications Prototypes) the open source project + + DAP (Deus Applicaions Prototypes) is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + DAP is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with any DAP based project. If not, see <http://www.gnu.org/licenses/>. +*/ + #include "dap_common.h" #include "dap_hash_fusion.h" diff --git a/dap_hash_fusion.h b/dap_hash_fusion.h index 12346aaae7222b2415c2a7ce5b851a275e8ff4a3..a2d8d85b13846b79597c3778b96cc37dcf86c986 100644 --- a/dap_hash_fusion.h +++ b/dap_hash_fusion.h @@ -1,5 +1,25 @@ -#ifndef _DAP_HASH_FUSION_H_ -#define _DAP_HASH_FUSION_H_ +/* + * Authors: + * Dmitriy A. Gearasimov <kahovski@gmail.com> + * DeM Labs Inc. https://demlabs.net + * DeM Labs Open source community https://github.com/demlabsinc + * Copyright (c) 2017-2018 + * All rights reserved. + This file is part of DAP (Deus Applications Prototypes) the open source project -#endif + DAP (Deus Applicaions Prototypes) is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + DAP is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with any DAP based project. If not, see <http://www.gnu.org/licenses/>. +*/ + +#pragma once diff --git a/dap_hash_keccak.c b/dap_hash_keccak.c index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..03695a705ca482a0c39660726cc4ce0d7b4d4974 100644 --- a/dap_hash_keccak.c +++ b/dap_hash_keccak.c @@ -0,0 +1,26 @@ +/* + * Authors: + * Dmitriy A. Gearasimov <kahovski@gmail.com> + * DeM Labs Inc. https://demlabs.net + * DeM Labs Open source community https://github.com/demlabsinc + * Copyright (c) 2017-2018 + * All rights reserved. + + This file is part of DAP (Deus Applications Prototypes) the open source project + + DAP (Deus Applicaions Prototypes) is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + DAP is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with any DAP based project. If not, see <http://www.gnu.org/licenses/>. +*/ + +#include "dap_hash_keccak.h" + diff --git a/dap_hash_keccak.h b/dap_hash_keccak.h index 6381fe4923c8623c63b716fd76ba466dccad1d0d..890d9e0504996a5926ddfbdda9913ff4d63b65a5 100644 --- a/dap_hash_keccak.h +++ b/dap_hash_keccak.h @@ -1,3 +1,27 @@ +/* + * Authors: + * Dmitriy A. Gearasimov <kahovski@gmail.com> + * DeM Labs Inc. https://demlabs.net + * DeM Labs Open source community https://github.com/demlabsinc + * Copyright (c) 2017-2018 + * All rights reserved. + + This file is part of DAP (Deus Applications Prototypes) the open source project + + DAP (Deus Applicaions Prototypes) is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + DAP is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with any DAP based project. If not, see <http://www.gnu.org/licenses/>. +*/ + #pragma once #include "keccak.h" diff --git a/dap_hash_slow.c b/dap_hash_slow.c index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..38902a6e63ac432a3a05b9db608d0678bfc6da44 100644 --- a/dap_hash_slow.c +++ b/dap_hash_slow.c @@ -0,0 +1,25 @@ +/* + * Authors: + * Dmitriy A. Gearasimov <kahovski@gmail.com> + * DeM Labs Inc. https://demlabs.net + * DeM Labs Open source community https://github.com/demlabsinc + * Copyright (c) 2017-2018 + * All rights reserved. + + This file is part of DAP (Deus Applications Prototypes) the open source project + + DAP (Deus Applicaions Prototypes) is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + DAP is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with any DAP based project. If not, see <http://www.gnu.org/licenses/>. +*/ + +#include "dap_hash_slow.h" diff --git a/dap_hash_slow.h b/dap_hash_slow.h index 61a90525ed00c3065834ea43396669c480147756..27d2604f89a7036d01ea033b454c2b929b651fae 100644 --- a/dap_hash_slow.h +++ b/dap_hash_slow.h @@ -1,5 +1,28 @@ -#ifndef _DAP_HASH_SLOW_H_ -#define _DAP_HASH_SLOW_H_ +/* + * Authors: + * Dmitriy A. Gearasimov <kahovski@gmail.com> + * DeM Labs Inc. https://demlabs.net + * DeM Labs Open source community https://github.com/demlabsinc + * Copyright (c) 2017-2018 + * All rights reserved. + + This file is part of DAP (Deus Applications Prototypes) the open source project + + DAP (Deus Applicaions Prototypes) is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + DAP is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with any DAP based project. If not, see <http://www.gnu.org/licenses/>. +*/ + +#pragma once #include "hash-ops.h" @@ -18,4 +41,3 @@ inline void dap_hash_slow(const void *a_in, size_t a_in_length, char * a_out) inline size_t dap_hash_slow_size() { return DAP_HASH_SLOW_SIZE; } //cn_slow_hash(data, length, reinterpret_cast<char *>(&hash)); -#endif