mirror of
https://github.com/eosswedenorg/libantelope
synced 2026-06-18 12:30:02 +02:00
Change namespace and header guards from libeosio to libantelope
This commit is contained in:
parent
0cfd459c71
commit
6824a2f49e
32 changed files with 176 additions and 176 deletions
|
|
@ -21,13 +21,13 @@
|
|||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
#ifndef LIBEOSIO_CODEC_H
|
||||
#define LIBEOSIO_CODEC_H
|
||||
#ifndef LIBANTELOPE_CODEC_H
|
||||
#define LIBANTELOPE_CODEC_H
|
||||
|
||||
#include <libeosio/WIF.hpp>
|
||||
#include <libantelope/WIF.hpp>
|
||||
#include <vector>
|
||||
|
||||
namespace libeosio { namespace internal {
|
||||
namespace libantelope { namespace internal {
|
||||
|
||||
/**
|
||||
* Public-key encoders
|
||||
|
|
@ -79,6 +79,6 @@ typedef bool (*sig_decoder_t)(const std::vector<unsigned char>& buf, ec_signatur
|
|||
|
||||
bool sig_decoder_k1(const std::vector<unsigned char>& buf, ec_signature_t& sig);
|
||||
|
||||
}} // namespace libeosio::internal
|
||||
}} // namespace libantelope::internal
|
||||
|
||||
#endif /* LIBEOSIO_CODEC_H */
|
||||
#endif /* LIBANTELOPE_CODEC_H */
|
||||
|
|
|
|||
|
|
@ -22,11 +22,11 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <libeosio/checksum.hpp>
|
||||
#include <libantelope/checksum.hpp>
|
||||
#include <vector>
|
||||
#include "codec.hpp"
|
||||
|
||||
namespace libeosio { namespace internal {
|
||||
namespace libantelope { namespace internal {
|
||||
|
||||
// Just to make it "harder" the calculated checksum for a signature (k1) and pub/priv keys in k1/r1 format.
|
||||
// has a suffix that is not present in the WIF encoded string.
|
||||
|
|
@ -125,4 +125,4 @@ bool sig_decoder_k1(const std::vector<unsigned char>& buf, ec_signature_t& sig)
|
|||
}
|
||||
|
||||
|
||||
}} // namespace libeosio::internal
|
||||
}} // namespace libantelope::internal
|
||||
|
|
@ -22,10 +22,10 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <libeosio/checksum.hpp>
|
||||
#include <libantelope/checksum.hpp>
|
||||
#include "codec.hpp"
|
||||
|
||||
namespace libeosio { namespace internal {
|
||||
namespace libantelope { namespace internal {
|
||||
|
||||
#define PRIV_KEY_PREFIX 0x80 /* 0x80 for "Bitcoin mainnet". Always used by EOS. */
|
||||
|
||||
|
|
@ -77,4 +77,4 @@ bool priv_decoder_legacy(const std::vector<unsigned char>& buf, ec_privkey_t& pr
|
|||
return true;
|
||||
}
|
||||
|
||||
}} // namespace libeosio::internal
|
||||
}} // namespace libantelope::internal
|
||||
Loading…
Add table
Add a link
Reference in a new issue