-
Dmitriy A. Gerasimov authored
[+] Datum now inherits from dap_chain_t [*] Lot of small changes
ede99970
/*
* 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_pkey.h"
typedef struct dap_chain_datum_token{
struct {
uint64_t token_id;
uint8_t token_uuid[16];/// Unique ID
} DAP_ALIGN_PACKED header;
dap_chain_pkey_t pkey; /// Token owner's public key
} DAP_ALIGN_PACKED dap_chain_datum_token_t;
size_t dap_chain_datum_token_create_output_calc(dap_enc_key_t * a_key);
int dap_chain_datum_token_create_output(dap_enc_key_t * a_key, uint64_t a_token_id, uint8_t a_token_uuid[16]
, void * a_output);