tcheeric / nostr-java

A nostr library, written in java, for generating, signing and publishing events.
MIT License
71 stars 23 forks source link

Remove unnecessary modules/classes/methods #29

Closed tcheeric closed 1 year ago

tcheeric commented 1 year ago
tcheeric commented 1 year ago

@guilhermegps - I figured out that the only place the unmarshaller classes were useful was in the unit tests. They helped to easily create an element object (event, tag, or message) based on its string representation. It was handy, but can also be achieved in a different way...

guilhermegps commented 1 year ago

Sounds good for me.

We can use Jackson for the same propose. Using Jackson's JsonNode and ArrayNode, we may have fast access to the values serialized and deserialized. We also can use jackson to convert these values to java native types as "String", "Boolean", etc.

tcheeric commented 1 year ago

This is completed.