Comments (5)
This Base64 implementation (file) was copied from the Android project -- didn't want an external dependency, but wanted a solid implementation. Do you know if the issue had been reported or fixed upstream?
from consensusj.
A lot of base64 implementations insert newlines for "pretty-printing". It's not an issue w/ the Base64 implementation IMO. Also, it looks like Base64 is an internal library? com.msgilligan.jsonrpc.util.Base64
. There is also java.util.Base64
which obviously doesn't have any external dependencies, but I'm not sure what its status with newlines is. Worst case, it should be easy to use String.replace("\n", "")
, or something similar.
from consensusj.
It's internal, but copied (with copyright notice intact) from Android.
We needed to:
- Have something that works on Java and Android
- Avoid namespace conflicts
- Avoid any external dependencies
from consensusj.
java.util.Base64 is added in Android API level 26 (aka Android 8.0, "Oreo")
So, unless you're developing for Android 8.0 or later and you want the same code to work on Java and Android you have to provide your own implementation (or a factory, etc)
from consensusj.
Fixed by c935710 -- on master
branch -- will be in next release.
from consensusj.
Related Issues (20)
- JsonRpcRequest: support params as maps (JSON-RPC 2.0 feature)
- JsonRpcServiceWrapper: use Jackson to map to custom types (after method is identified)
- Upgrade consensusj-jsonrpc and dependents to Java 17
- Numeric value (2345908848) out of range of int HOT 5
- Field "frozen" added to balance results HOT 1
- getRawTransaction hexEncoded Parse error HOT 2
- Best approach for NameLookupService? HOT 3
- Upgrade to Spring Boot 2.1.x HOT 1
- I want to use jsonrpc to connect bitcoind. What should I do? HOT 2
- Write User Guide
- JavaDoc (AsciiDoclet) won't build on JDK 11 HOT 2
- Add new Bitcoin RPC Method: generatetoaddress HOT 2
- Upgrade CLI modules to JDK 9 and use ToolProvider interface HOT 1
- Gradle build: migrate from deprecated `maven` plugin to `maven-publish` plugin HOT 1
- Resolve publishing issues with Spring Boot subprojects HOT 1
- Remove Spring Boot and Ratpack-based server apps HOT 5
- jakarta.inject migration is not complete HOT 3
- Publish jars on artifact repository (Bintray shutdown) HOT 5
- Publish to Maven Central
- Re-enable AsciiDoclet?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from consensusj.