1
0
Fork 0
mirror of https://github.com/eosswedenorg/libantelope synced 2026-06-17 12:00:02 +02:00

Change namespace and header guards from libeosio to libantelope

This commit is contained in:
Henrik Hautakoski 2023-04-06 14:23:05 +02:00
parent 0cfd459c71
commit 6824a2f49e
32 changed files with 176 additions and 176 deletions

View file

@ -21,13 +21,13 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#ifndef LIBEOSIO_WIF_H
#define LIBEOSIO_WIF_H
#ifndef LIBANTELOPE_WIF_H
#define LIBANTELOPE_WIF_H
#include <string>
#include <libeosio/ec.hpp>
#include <libantelope/ec.hpp>
namespace libeosio {
namespace libantelope {
/**
* Key prefixes. (strings that is not equal to these prefixes are treated as legacy format.)
@ -94,6 +94,6 @@ std::string wif_sig_encode(const ec_signature_t& sig);
*/
bool wif_sig_decode(ec_signature_t& sig, const std::string& data);
} // namespace libeosio
} // namespace libantelope
#endif /* LIBEOSIO_WIF_H */
#endif /* LIBANTELOPE_WIF_H */

View file

@ -21,13 +21,13 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#ifndef LIBEOSIO_BASE58_H
#define LIBEOSIO_BASE58_H
#ifndef LIBANTELOPE_BASE58_H
#define LIBANTELOPE_BASE58_H
#include <string>
#include <vector>
namespace libeosio {
namespace libantelope {
/**
* Base58 Encoding functions.
@ -61,6 +61,6 @@ size_t is_base58(const std::string& str);
*/
std::string& base58_strip(std::string& str);
} //namespace libeosio
} //namespace libantelope
#endif /* LIBEOSIO_BASE58_H */
#endif /* LIBANTELOPE_BASE58_H */

View file

@ -21,14 +21,14 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#ifndef LIBEOSIO_CHECKSUM_H
#define LIBEOSIO_CHECKSUM_H
#ifndef LIBANTELOPE_CHECKSUM_H
#define LIBANTELOPE_CHECKSUM_H
#include <cstdint>
#include <cstring>
#include <libeosio/hash.hpp>
#include <libantelope/hash.hpp>
namespace libeosio {
namespace libantelope {
/**
* Checksum size (in bytes)
@ -68,6 +68,6 @@ inline bool checksum_validate(const unsigned char* data, std::size_t len) {
#define checksum_sha256d checksum<sha256_t, sha256d>
#define checksum_ripemd160 checksum<ripemd160_t, ripemd160>
} // namespace libeosio
} // namespace libantelope
#endif /* LIBEOSIO_CHECKSUM_H */
#endif /* LIBANTELOPE_CHECKSUM_H */

View file

@ -21,14 +21,14 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#ifndef LIBEOSIO_EC_H
#define LIBEOSIO_EC_H
#ifndef LIBANTELOPE_EC_H
#define LIBANTELOPE_EC_H
#include <libeosio/hash.hpp>
#include <libantelope/hash.hpp>
#include <iostream>
#include <array>
namespace libeosio {
namespace libantelope {
/**
* Elliptic curve private key size (in bytes)
@ -128,13 +128,13 @@ int ecdsa_recover(const sha256_t* digest, const ec_signature_t& sig, ec_pubkey_t
*/
void ec_shutdown();
} // namespace libeosio
} // namespace libantelope
// Stream operators
std::ostream& operator<<(std::ostream& os, const libeosio::ec_privkey_t& pk);
std::ostream& operator<<(std::ostream& os, const libantelope::ec_privkey_t& pk);
std::ostream& operator<<(std::ostream& os, const libeosio::ec_pubkey_t& pk);
std::ostream& operator<<(std::ostream& os, const libantelope::ec_pubkey_t& pk);
#endif /* LIBEOSIO_EC_H */
#endif /* LIBANTELOPE_EC_H */

View file

@ -21,12 +21,12 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#ifndef LIBEOSIO_HASH_H
#define LIBEOSIO_HASH_H
#ifndef LIBANTELOPE_HASH_H
#define LIBANTELOPE_HASH_H
#include <cstddef>
namespace libeosio {
namespace libantelope {
/**
* Hashes
@ -55,6 +55,6 @@ sha256_t* sha256d(const unsigned char *data, std::size_t len, sha256_t* out);
*/
ripemd160_t* ripemd160(const unsigned char *data, std::size_t len, ripemd160_t* out);
} // namespace libeosio
} // namespace libantelope
#endif /* LIBEOSIO_HASH_H */
#endif /* LIBANTELOPE_HASH_H */