Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Erik Jansen
crown-core-test-new-gitlab-runner
Commits
64a269d9
Commit
64a269d9
authored
6 years ago
by
Ashot
Browse files
Options
Download
Email Patches
Plain Diff
Fixed private key version byte size
parent
d88377fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/base58.cpp
+5
-0
src/base58.cpp
src/base58.h
+3
-1
src/base58.h
with
8 additions
and
1 deletion
+8
-1
src/base58.cpp
View file @
64a269d9
...
...
@@ -340,3 +340,8 @@ bool CBitcoinSecret::SetString(const std::string& strSecret)
{
return
SetString
(
strSecret
.
c_str
());
}
unsigned
int
CBitcoinSecret
::
GetVersionBytes
()
const
{
return
1
;
}
This diff is collapsed.
Click to expand it.
src/base58.h
View file @
64a269d9
...
...
@@ -101,7 +101,7 @@ private:
const
unsigned
int
m_versionBytesOld
;
private:
unsigned
int
GetVersionBytes
()
const
;
virtual
unsigned
int
GetVersionBytes
()
const
;
};
/** base58-encoded Crown addresses.
...
...
@@ -151,6 +151,8 @@ public:
CBitcoinSecret
(
const
CKey
&
vchSecret
)
{
SetKey
(
vchSecret
);
}
CBitcoinSecret
()
{}
private:
unsigned
int
GetVersionBytes
()
const
;
};
template
<
typename
K
,
int
Size
,
CChainParams
::
Base58Type
Type
>
class
CBitcoinExtKeyBase
:
public
CBase58Data
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help