fix(cli): mark Identity.hasPrivateKey @JsonIgnore

Jackson was writing the computed \`hasPrivateKey\` into identity.json
and then refusing to read it back ("Unrecognized field hasPrivateKey")
on the next invocation. All amy commands that reload the data-dir
(\`marmot group create\`, \`marmot key-package publish\`, …) exited 1 at
the Context.open step. Pure boolean getter, no persistence needed.

https://claude.ai/code/session_01M6dCKAF5Y1VyHGZPjzwDXq
This commit is contained in:
Claude
2026-04-21 22:30:08 +00:00
parent 760e682b89
commit 020abccf57
@@ -45,6 +45,7 @@ data class Identity(
val nsec: String?,
val npub: String,
) {
@get:com.fasterxml.jackson.annotation.JsonIgnore
val hasPrivateKey: Boolean get() = privKeyHex != null
fun keyPair(): KeyPair =