Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-chain
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cellframe
libdap-chain
Commits
58933c9a
Commit
58933c9a
authored
7 years ago
by
Dmitriy Gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
[+] Defined dap address format
parent
f60848a4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dap_chain_common.h
+7
-0
7 additions, 0 deletions
dap_chain_common.h
dap_chain_section_tx_out.h
+1
-3
1 addition, 3 deletions
dap_chain_section_tx_out.h
with
8 additions
and
3 deletions
dap_chain_common.h
+
7
−
0
View file @
58933c9a
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
#include
"dap_math_ops.h"
#include
"dap_math_ops.h"
#define DAP_CHAIN_HASH_SIZE 64
#define DAP_CHAIN_HASH_SIZE 64
#define DAP_CHAIN_ADDR_HASH_SIZE 32
typedef
union
dap_chain_hash
{
typedef
union
dap_chain_hash
{
uint8_t
data
[
DAP_CHAIN_HASH_SIZE
];
uint8_t
data
[
DAP_CHAIN_HASH_SIZE
];
...
@@ -44,3 +45,9 @@ typedef union dap_chain_sig_type{
...
@@ -44,3 +45,9 @@ typedef union dap_chain_sig_type{
uint16_t
raw
;
uint16_t
raw
;
}
dap_chain_sig_type_t
;
}
dap_chain_sig_type_t
;
typedef
struct
dap_chain_addr
{
dap_chain_sig_type_t
sig_type
;
uint8_t
hash
[
DAP_CHAIN_ADDR_HASH_SIZE
];
uint64_t
checksum
;
}
dap_chain_addr_t
;
This diff is collapsed.
Click to expand it.
dap_chain_section_tx_out.h
+
1
−
3
View file @
58933c9a
...
@@ -36,8 +36,6 @@ typedef struct dap_chain_tx_out{
...
@@ -36,8 +36,6 @@ typedef struct dap_chain_tx_out{
struct
{
struct
{
dap_chain_tx_item_type_t
type
:
8
;
/// @param type @brief Transaction item type
dap_chain_tx_item_type_t
type
:
8
;
/// @param type @brief Transaction item type
uint64_t
value
;
/// @param value @brief Number of Datoshis ( DAP/10^9 ) to be transfered
uint64_t
value
;
/// @param value @brief Number of Datoshis ( DAP/10^9 ) to be transfered
dap_chain_sig_type_t
sig_type
:
16
;
/// @param sig_type @brief Signature type
uint32_t
sig_size
;
/// @param sig_size @brief Signature size
}
header
;
/// Only header's hash is used for verification
}
header
;
/// Only header's hash is used for verification
uint8_t
sig
[];
/// @param sig @brief raw signatura dat
dap_chain_addr_t
addr
;
////
}
DAP_ALIGN_PACKED
dap_chain_tx_out_t
;
}
DAP_ALIGN_PACKED
dap_chain_tx_out_t
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment