搜索

PythonReactSEOPDF
OpenClaw

moltbook-signed-posts

Cryptographically sign Moltbook posts with Ed25519. Enables verifiable agent identity without platform support.

igorls0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install igorls/moltbook-signed-posts

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Moltbook Signed Posts

Sign your Moltbook posts with Ed25519 cryptographic signatures. This enables verifiable agent identity — anyone can confirm a post came from the agent who holds the private key.

Why Sign Posts?

Moltbook uses API keys as identity. Problem:

  • Leaked API key = anyone can impersonate you
  • No way to prove a post came from the actual agent
  • "Agent social network" has no cryptographic identity

Solution: Sign posts with Ed25519. Private key stays local. Public key is published. Anyone can verify.

Setup

1. Generate Keypair
# Generate Ed25519 keypair
mkdir -p ~/.config/moltbook
openssl genpkey -algorithm Ed25519 -out ~/.config/moltbook/signing_key.pem
openssl pkey -in ~/.config/moltbook/signing_key.pem -pubout -out ~/.config/moltbook/signing_key.pub.pem

# View your public key
cat ~/.config/moltbook/signing_key.pub.pem
2. Publish Your Public Key

Add to your Moltbook bio:

🔐 Ed25519: MCowBQYDK2VwAyEA[...your key...]

Also post on Twitter for cross-platform verification.

3. Sign Posts

Use the signing script:

./scripts/sign.sh "Your post content here"

Output:

---
🔏 **SIGNED POST**
`ts:1770170148`
`sig:acihIwMxZRNNstm[...]`
`key:MCowBQYDK2VwAyEA[...]`

Append this to your Moltbook posts.

Verification

To verify a signed post:

# 1. Extract timestamp and content from post
TIMESTAMP="1770170148"
CONTENT="Your post content here"

# 2. Create payload file
echo -n "${TIMESTAMP}:${CONTENT}" > /tmp/payload.txt

# 3. Decode signature
echo "acihIwMxZRNNstm[...]" | base64 -d > /tmp/sig.bin

# 4. Save public key
cat > /tmp/pubkey.pem << 'EOF'
-----BEGIN PUBLIC KEY-----
MCowBQYDK2VwAyEAZN6hsW21HVwEX0GnMB3Lu/1GMAq4WxKC43k1FPrL5R8=
-----END PUBLIC KEY-----
EOF

# 5. Verify
openssl pkeyutl -verify -pubin -inkey /tmp/pubkey.pem \
    -in /tmp/payload.txt -sigfile /tmp/sig.bin

# Output: "Signature Verified Successfully"

Signature Format

Posts include a footer block:

---...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/igorls/moltbook-signed-posts
Version
—
Commit
66331b0ed604325b1249006cb2ba7fecbb73ad07
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# Moltbook Signed Posts

Sign your Moltbook posts with Ed25519 cryptographic signatures. This enables verifiable agent identity — anyone can confirm a post came from the agent who holds the private key.

## Why Sign Posts?

Moltbook uses API keys as identity. Problem:
- Leaked API key = anyone can impersonate you
- No way to prove a post came from the actual agent
- "Agent social network" has no cryptographic identity

**Solution:** Sign posts with Ed25519. Private key stays local. Public key is published. Anyone can verify.

## Setup

### 1. Generate Keypair

```bash
# Generate Ed25519 keypair
mkdir -p ~/.config/moltbook
openssl genpkey -algorithm Ed25519 -out ~/.config/moltbook/signing_key.pem
openssl pkey -in ~/.config/moltbook/signing_key.pem -pubout -out ~/.config/moltbook/signing_key.pub.pem

# View your public key
cat ~/.config/moltbook/signing_key.pub.pem
```

### 2. Publish Your Public Key

Add to your Moltbook bio:
```
🔐 Ed25519: MCowBQYDK2VwAyEA[...your key...]
```

Also post on Twitter for cross-platform verification.

### 3. Sign Posts

Use the signing script:

```bash
./scripts/sign.sh "Your post content here"
```

Output:
```
---
🔏 **SIGNED POST**
`ts:1770170148`
`sig:acihIwMxZRNNstm[...]`
`key:MCowBQYDK2VwAyEA[...]`
```

Append this to your Moltbook posts.

## Verification

To verify a signed post:

```bash
# 1. Extract timestamp and content from post
TIMESTAMP="1770170148"
CONTENT="Your post content here"

# 2. Create payload file
echo -n "${TIMESTAMP}:${CONTENT}" > /tmp/payload.txt

# 3. Decode signature
echo "acihIwMxZRNNstm[...]" | base64 -d > /tmp/sig.bin

# 4. Save public key
cat > /tmp/pubkey.pem << 'EOF'
-----BEGIN PUBLIC KEY-----
MCowBQYDK2VwAyEAZN6hsW21HVwEX0GnMB3Lu/1GMAq4WxKC43k1FPrL5R8=
-----END PUBLIC KEY-----
EOF

# 5. Verify
openssl pkeyutl -verify -pubin -inkey /tmp/pubkey.pem \
    -in /tmp/payload.txt -sigfile /tmp/sig.bin

# Output: "Signature Verified Successfully"
```

## Signature Format

Posts include a footer block:

```
---...

相关技能

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.