ขอเสริมคุณอาร์มนิดนึงครับ
1. ที่ Firewall ของ Server เปิดแค่พอร์ต SSH (22) ก็เพียงพอครับ พอร์ตอื่นๆ ของ Bitcoin/Tor/I2P ไม่จำเป็นต้องเปิด Inbound เพราะเราจะใช้แบบ Hidden Service
2. แนะนำให้ตั้งค่ารัน Docker ด้วย Non-root user เพื่อช่วยจำกัดสิทธิ์หากโดนโจมตีครับ
3. Bitcoin Node สามารถคุยกับ Tor Control Port เพื่อสร้าง .onion address และทำ Authentication ผ่าน Cookie ได้โดยอัตโนมัติ (แต่ผมไม่แน่ใจ dockurr/tor ทำได้ไหม)
4. ปิด RPC (8332) หากไม่ได้ใช้งานและแนะนำให้รัน Electrum Server (เช่น electrs) คั่นกลางระหว่าง Node กับ Wallet วิธีนี้จะปลอดภัยกว่าและทำให้ Wallet ทำงานได้รวดเร็วขึ้นมากเมื่อเชื่อมต่อผ่าน Tor ครับ
kohanucha
kohanucha@siamstr.com
npub1d0gj...0hxg
Back-end developer
มารัน bitcoin node ด้วย docker กันนนน #siamstr
View article →
GM ครับ #siamstr


@RUNSTR I’m not sure if this is a bug or a feature, but I discovered that RUNSTR on iOS sends me a daily workout reward (50 sats) every time I follow these steps:
1. Install RUNSTR.
2. Log in with an nsec.
3. Go to Stats on the Profile page.
4. Go to Watch and import workout data from the Apple Health App.
5. Sync to Nostr using the Complete button.
6. Receive the 50 sats reward.
7. Delete RUNSTR.
8. Repeat all steps.
It seems I can trigger the reward multiple times by reinstalling the app.
#siamstr #runstr


Alby Go เปลี้ยนไป๋ #siamstr #albygo


GM ครับ #siamstr


Bitcoin development philosophy
#siamstr
Bitcoin development philosophy
ศึกษาบิตคอยน์ผ่าน command line กันครับ #siamstr

GitHub
GitHub - BlockchainCommons/Learning-Bitcoin-from-the-Command-Line: A complete course for learning Bitcoin programming and usage from the command
A complete course for learning Bitcoin programming and usage from the command - BlockchainCommons/Learning-Bitcoin-from-the-Command-Line
Bug report @Alby
Alby go -> transactions page -> scroll down -> app crash
ios 26.0.1
กินข้าวแบบใกล้ชิดธรรมชาติ
#siamstr #wasp
ขณะที่ผมกำลังกราวดิ้งอยู่นั้น ก็มีเจ้าสิ่งนี้เข้ามาทักทาย #siamstr #แมงแสนตี๋น
#siamstr มีใครเคยใช้ swap out ของ alby hub มั้ยครับ
ผมสงสัยว่า ถ้าเกิด Failed to pay swap invoice แล้วมันจะ unlock funds ของเราตอนไหน 

#siamstr
พระอาทิตย์ตกที่ระยอง #siamstr
#
ยอดดอยใหม่ใกล้ฉัน #siamstr


#siamstr
วันนี้มาแจกตัวอย่าง Dockerfile สำหรับ build electrs server docker image เผื่อใครสนใจทำไว้ run เล่นเองที่บ้านครับ
Dockerfile
```
FROM rust:slim-bookworm AS build
# Declare build args
ARG VERSION=master
# Install build dependencies
RUN apt-get update && apt-get install -qqy \
clang cmake build-essential git pkg-config libssl-dev \
librocksdb-dev
# Clone and build electrs
RUN git clone
/electrs && \
cd /electrs && \
git checkout ${VERSION} && \
cargo build --locked --release
FROM debian:bookworm-slim AS runtime
# Declare runtime args
ARG UID=
ARG GID=
ARG USERNAME=
ARG GROUPNAME=
# Create group and user
RUN groupadd -g ${GID} ${GROUPNAME} && \
useradd -u ${UID} -g ${GID} -m -s /bin/bash ${USERNAME} && \
mkdir -p /home/${USERNAME}/electrs/bin /home/${USERNAME}/electrs/db /home/${USERNAME}/electrs/bitcoin && \
chown -R ${USERNAME}:${GROUPNAME} /home/${USERNAME}
# Copy the built binary
COPY --from=build /electrs/target/release/electrs /home/${USERNAME}/electrs/bin/
# Switch to non-root user
USER ${USERNAME}
WORKDIR /home/${USERNAME}/electrs
# Expose port 50001
EXPOSE 50001
# Run the binary
CMD ["./bin/electrs"]
```
build.sh
```
#!/bin/bash
VERSION=v0.10.9
export VERSION=${VERSION}
docker buildx build --build-arg VERSION -t electrs:${VERSION} /path/to/dockerfile
```
GitHub
GitHub - romanz/electrs: An efficient re-implementation of Electrum Server in Rust
An efficient re-implementation of Electrum Server in Rust - romanz/electrs
#siamstr
มีใครเคยดูหนังเรื่องนี้มั้ยครับ ที่พูดถึงเรื่องของ edward snowden คนที่เปิดโปงว่า NSA กำลังส่องพวกเราอยู่และน่าจะเป็นเหตุการณ์ที่ทำให้มีความกังวลว่า ECDSA secp256r1 curve ที่ออกแบบโดย NSA อาจจะมี backdoor
bitcoin จึงใช้ secp256k1 แทนเพราะไม่ไว้ใจ NSA