APDU Header | description |
---|---|
CLA | Instruction Class |
INS | Instruction |
P1 | More/Last Payload |
P2 | Signing Algorithm |
INS | byte |
---|---|
GetPublicKey | 0x02 |
APDU Header | description |
---|---|
CLA | Instruction Class |
INS | Instruction |
P1 | More/Last Payload |
P2 | Signing Algorithm |
INS | byte |
---|---|
GetPublicKey | 0x02 |
/******************************************************************************* | |
* This file is part of the ARK Ledger App. | |
* | |
* Copyright (c) ARK Ecosystem <[email protected]> | |
* | |
* The MIT License (MIT) | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to | |
* deal in the Software without restriction, including without limitation the |
/******************************************************************************* | |
* | |
* Copyright (c) Simon Downey <[email protected]> | |
* | |
* The MIT License (MIT) | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to | |
* deal in the Software without restriction, including without limitation the | |
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
/******************************************************************************* | |
* | |
* Copyright (c) Simon Downey <[email protected]> | |
* | |
* The MIT License (MIT) | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to | |
* deal in the Software without restriction, including without limitation the | |
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
#ifndef ENDIAN_H | |
#define ENDIAN_H | |
#include <stdint.h> | |
int isBigEndian() { | |
union { | |
uint32_t i; | |
char c[4]; |
/******************************************************************************* | |
* This file is part of the ARK Ecosystem. | |
* | |
* Copyright (c) ARK Ecosystem <[email protected]> | |
* Copyright (c) Simon Downey <[email protected]> (https://github.com/sleepdefic1t) | |
* | |
* The MIT License (MIT) | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to |
cmake_minimum_required(VERSION 3.2) | |
project(ark_cpp_crypto C CXX) | |
# ------------------------------------------------------------------------------ | |
# External Libraries | |
# ------------------------------------------------------------------------------ | |
include(${CMAKE_SOURCE_DIR}/cmake/External.cmake) |
std::vector<uint8_t> decodeBase58(const uint8_t *in, const size_t length) { | |
unsigned char const BASE58TABLE[] = { | |
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, | |
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, | |
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, | |
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, | |
0xff, 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0xff, 0xff, | |
0xff, 0xff, 0xff, 0xff, 0xff, 0x9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf, |
# | |
# | |
# Downloads GTest and provides a helper macro to add tests. Add make check, as well, which | |
# gives output on failed tests without having to set an environment variable. | |
# | |
# | |
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) | |
if(CMAKE_VERSION VERSION_LESS 3.11) | |
set(UPDATE_DISCONNECTED_IF_AVAILABLE "UPDATE_DISCONNECTED 1") |