# User

Search for keys by user.

> keys user search

# <name@service> <kid>
gabriel@github kex1mnseg28xu6g3j4wur7hqwk8ag3fu3pmr2t5lync26xmgff0dtryqupf80c
gabrlh@twitter kex1e26rq9vrhjzyxhep0c5ly6rudq7m2cexjlkgknl2z4lqf8ga3uasz3s48m

Search for a user.

> keys user search -q gabriel

# <name@service> <kid>
gabriel@github kex1mnseg28xu6g3j4wur7hqwk8ag3fu3pmr2t5lync26xmgff0dtryqupf80c

Find by key id.

> keys user find kex1mnseg28xu6g3j4wur7hqwk8ag3fu3pmr2t5lync26xmgff0dtryqupf80c

# <name@service>
gabriel@github

# keys user setup

This command links a key to a user account.

> keys user setup

What's the service?
(g) Github
(t) Twitter
t

What's your Twitter handle? boboloblaw

Save the following signed message as a tweet on your Twitter account.
https://twitter.com/intent/tweet

BEGIN MESSAGE.
eb90A0en2hcwfYi jYDez0uArQs3HYg OiJlOgVUIfSeips u7JJcO6819zwug6
n9639e2e18gwZtM CQlePtNVn9wTCKq LPKyEa7sfoHfnVB 0hPvyKMbyjBGqHh
7dz327KuwGT7Oww kMEmgjibmwuK6N3 1UwmaFLcDXRyz4c 7NV5uSV1Msu2Kjb
MiH1JUIqH80eo7u x6O3uRXcb5Shhfq MJx.
END MESSAGE.

Have you posted the signed message (Y/n)? Y
What's the location (URL) on github.com where the signed message was saved? https://twitter.com/boboloblaw/status/1181685633732898816

User successfully setup.

# keys user sign

Create signed statement for service user, linking key kex1mnseg28xu6g3j4wur7hqwk8ag3fu3pmr2t5lync26xmgff0dtryqupf80c to gabriel@github.

> keys user sign -kid kex1mnseg28xu6g3j4wur7hqwk8ag3fu3pmr2t5lync26xmgff0dtryqupf80c \
-service github -name gabriel

# Signed statement
BEGIN MESSAGE.
6C7cjOwfS25pYjf ykSIvIk1cHf5d3G ffL09Puva7QKTYq AOIVZnd7N1B23T3
biMftdYkd4LwOXP hGQkwcONSKtTCKs gwSpYAiSWCPT9aL xOi6m8aukRziLhy
6zRw0eOntOIeF4I JQZvA7PVC2cJdan K9eCUmoVaUKLqsb v91bARw0FcF62QB
QA5HdBgu10Qrl.
END MESSAGE.

Post this to a gist (if on github) or tweet (if on twitter) and run keys user add with the url to save it to the sigchain.

# keys user add

Verify signed statement at URL and save to sigchain.

> keys user add -kid kex1mnseg28xu6g3j4wur7hqwk8ag3fu3pmr2t5lync26xmgff0dtryqupf80c \
-service github -name gabriel \
-url https://gist.github.com/gabriel/01ce43aa867aa3b0105a6d18be7c98f6