Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
15
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
Show more breadcrumbs
cellframe
cellframe-sdk
Commits
db418fca
Commit
db418fca
authored
3 years ago
by
Dmitrii
Browse files
Options
Downloads
Patches
Plain Diff
[+] add signer type
parent
5b740d79
No related branches found
No related tags found
1 merge request
!420
Feature 5220
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
modules/chain/dap_chain.c
+3
-0
3 additions, 0 deletions
modules/chain/dap_chain.c
modules/chain/include/dap_chain.h
+1
-0
1 addition, 0 deletions
modules/chain/include/dap_chain.h
modules/common/include/dap_chain_datum.h
+3
-0
3 additions, 0 deletions
modules/common/include/dap_chain_datum.h
with
7 additions
and
0 deletions
modules/chain/dap_chain.c
+
3
−
0
View file @
db418fca
...
@@ -266,6 +266,9 @@ static dap_chain_type_t s_chain_type_from_str(const char *a_type_str)
...
@@ -266,6 +266,9 @@ static dap_chain_type_t s_chain_type_from_str(const char *a_type_str)
if
(
!
dap_strcmp
(
a_type_str
,
"ca"
))
{
if
(
!
dap_strcmp
(
a_type_str
,
"ca"
))
{
return
CHAIN_TYPE_CA
;
return
CHAIN_TYPE_CA
;
}
}
if
(
!
dap_strcmp
(
a_type_str
,
"signer"
))
{
return
CHAIN_TYPE_SIGNER
;
}
return
CHAIN_TYPE_LAST
;
return
CHAIN_TYPE_LAST
;
}
}
...
...
This diff is collapsed.
Click to expand it.
modules/chain/include/dap_chain.h
+
1
−
0
View file @
db418fca
...
@@ -95,6 +95,7 @@ typedef enum dap_chain_type
...
@@ -95,6 +95,7 @@ typedef enum dap_chain_type
CHAIN_TYPE_EMISSION
,
CHAIN_TYPE_EMISSION
,
CHAIN_TYPE_TX
,
CHAIN_TYPE_TX
,
CHAIN_TYPE_CA
,
CHAIN_TYPE_CA
,
CHAIN_TYPE_SIGNER
,
CHAIN_TYPE_LAST
CHAIN_TYPE_LAST
// CHAIN_TYPE_256_TOKEN, // 256
// CHAIN_TYPE_256_TOKEN, // 256
// CHAIN_TYPE_256_EMISSION, // 256
// CHAIN_TYPE_256_EMISSION, // 256
...
...
This diff is collapsed.
Click to expand it.
modules/common/include/dap_chain_datum.h
+
3
−
0
View file @
db418fca
...
@@ -55,6 +55,7 @@
...
@@ -55,6 +55,7 @@
/// CA with public key and self signed metadata
/// CA with public key and self signed metadata
#define DAP_CHAIN_DATUM_CA 0x0c00
#define DAP_CHAIN_DATUM_CA 0x0c00
#define DAP_CHAIN_DATUM_SIGNER 0x0c01
/// Token
/// Token
/// Simple token decl
/// Simple token decl
...
@@ -84,6 +85,8 @@
...
@@ -84,6 +85,8 @@
s = "DATUM_EVM_DATA"; break; \
s = "DATUM_EVM_DATA"; break; \
case DAP_CHAIN_DATUM_CA: \
case DAP_CHAIN_DATUM_CA: \
s = "DATUM_CA"; break; \
s = "DATUM_CA"; break; \
case DAP_CHAIN_DATUM_SIGNER: \
s = "DATUM_SIGNER"; break; \
case DAP_CHAIN_DATUM_CUSTOM: \
case DAP_CHAIN_DATUM_CUSTOM: \
s = "DATUM_CUSTOM"; break; \
s = "DATUM_CUSTOM"; break; \
case DAP_CHAIN_DATUM_TOKEN_DECL: \
case DAP_CHAIN_DATUM_TOKEN_DECL: \
...
...
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