# Bastion: A Hardened Bank Template, and Crypto Wallets in Core

DevFeed: [Bastion: A Hardened Bank Template, and Crypto Wallets in Core](<https://devfeed.tech/articles/bastion-a-hardened-bank-template-and-crypto-wallets-in-core-111251.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/bastion-hardened-bank-template/>)

Author: Shai Almog

Published: 2026-11-02T00:00:00Z

Content type: article

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [Finance](<https://devfeed.tech/topics/finance.md>), [Bitcoin](<https://devfeed.tech/topics/bitcoin.md>), [Ethereum](<https://devfeed.tech/topics/ethereum.md>), [Solana](<https://devfeed.tech/topics/solana.md>), [Template](<https://devfeed.tech/topics/template.md>)

Tags: [apis](<https://devfeed.tech/tags/apis.md>), [app](<https://devfeed.tech/tags/app.md>), [bank](<https://devfeed.tech/tags/bank.md>), [bastion](<https://devfeed.tech/tags/bastion.md>), [bitcoin](<https://devfeed.tech/tags/bitcoin.md>), [core](<https://devfeed.tech/tags/core.md>), [crypto](<https://devfeed.tech/tags/crypto.md>), [ethereum](<https://devfeed.tech/tags/ethereum.md>), [exchange](<https://devfeed.tech/tags/exchange.md>), [financial](<https://devfeed.tech/tags/financial.md>), [hardening](<https://devfeed.tech/tags/hardening.md>), [reference](<https://devfeed.tech/tags/reference.md>), [solana](<https://devfeed.tech/tags/solana.md>), [template](<https://devfeed.tech/tags/template.md>), [virtual](<https://devfeed.tech/tags/virtual.md>), [wallet](<https://devfeed.tech/tags/wallet.md>)

## AI overview

Bastion is a Java reference project for hardening a virtual bank and exchange, pairing layered app protections with ledger and audit tools. It uses PKCE sign-in, second factors, device-key signatures for money-moving requests, replay protection, host allowlists and certificate pinning; its Security Center marks cloud-build protections as inactive when unavailable. The text also describes core wallet APIs for Ethereum, Bitcoin and Solana, with shared recovery phrases, signing and network-specific transaction handling. The exchange backend scans deposits, waits for confirmations, audits deep reorganizations, checks reserves before withdrawals and restricts withdrawals to preapproved addresses. Bastion is explicitly a simulation rather than a licensed bank: it lacks KYC, sanctions screening, payment rails, HSMs and regulatory reporting; Bitcoin remains a ledger balance in the sample, and node calls are blocking.

## Source excerpt

Bastion is a virtual bank and exchange built as a reference for hardening a financial app, and Codename One now has wallet APIs for Ethereum, Bitcoin and Solana.