MB5SHULBN3WP7TGUWZDP6BRGP423FTYKF67T5IF5YHHLNXKQ5REAC
LCBJULKEU4I5FRUGYNRQSHXYLY5X3LRTSNWDCTZLS7YE4BBBDE6AC
A6HKMINBNGQLLX4QJMYWKQ4JAEHVJ4HIRVDKPPDI3FJUO2AAB7OQC
EZQG2APB36DDMIAYDPPDGOIXOD7K2RZZSGC2NKGZIHB2HZBTW7EQC
45QJYWN343MSN5LLXNIXZKWT7QVRVO23XQJUTU5QM24DP7GPSAZAC
2XQD6KKKD6QVHFHAEMVE3XXY7X2T7BLTLL7XIILZAXNJJH2YONUQC
64C6AWH66FDKU6UE6Z6JPX2J2GBM2JOPTH2GL6LHKAIUBGNGDZ5AC
I2KHGVD44KT4MQJXGCTVSQKMBO6TVCY72F26TLXGWRL6PHGF6RNQC
BROSTG5KP3NUNLSYPVQID254TE47E5RKQAKLPIY7PGWETE6JNMTAC
BXGLKYRXO2O4NRM3BLNWQ7AWVPQXAMFS57MFYHJNOZZEZZW5BH6AC
O5FVTOM6YFBLEPF3S576K6IMT6ZZ5VQCSB3YVXNS4CKBITKCRZ7AC
ADMKQQGCGVSHHIMVQ4XFRDCG544SBJCYALSKZV45CQQBZ4ACUH2AC
M3KUPGZK2UTW4FG3Q632K7P7MI4FVWD5TTIP45UTI3E72UKOWJBAC
* Invite
* When a new participant is invited to the project, allow them to create an account.
- user creates account ands provides initial payout address
- inviting user asked to sign a txn that transfers a specific amount of btc from their
current payout address to the invitee's payout address as confirmation of
the invitation + script
* Invite
* When a new participant is invited to the project, allow them to create an account.
- inviting user asked to sign a txn that transfers a specific amount of btc from their
current payout address to the invitee's payout address as confirmation of
the invitation + script -- is this actually worth it?
acceptInvitationHandler :: Handler App App ()
acceptInvitationHandler = do
uid <- requireUserId
t <- liftIO C.getCurrentTime
params <- getParams
invCodes <- maybe
(snapError 400 "invCode parameter is required")
(pure . traverse (parseInvCode . decodeUtf8))
(lookup "invCode" params)
either
(\e -> snapError 400 $ "Invitation code was rejected as invalid: " <> T.pack e)
(\cx -> void . snapEval $ traverse (acceptInvitation uid t) cx)
invCodes
A friend of yours ($from_email$) has invited you to join the "$project_name$" project at http://aftok.com. Here's what you need to do to accept their invitation. At present, there's no user interface for the service other than bare HTTP requests with a JSON payload. A script has been provided below that you can edit to include your own information. You'll need to replace the following three tokens:
A friend of yours ($from_email$) has invited you to join the "$project_name$"
project at http://aftok.com. Here's what you need to do to accept their
invitation. At present, there's no user interface for the service other than
bare HTTP requests with a JSON payload. A couple of scripts have been provided
below that you can edit to include your own information.
If you don't have an aftok.com account:
If you do not yet have an account on aftok.com, you can create a new account and
accept your invitation in one step. If you already have an aftok.com account that
you want to use, then then skip to the "For an existing account" section below.
To create a new account and accept the invitation, you'll need to replace
the following three tokens in the curl command below:
BTC_ADDR -- the bitcoin address that you want payouts to be initially sent to. You'll be able to change this later, but because changes of payout addresses are validated by checking transactions on the blockchain, it's important that this be a usable address that you control.
BTC_ADDR -- the bitcoin address that you want payouts to be initially sent to.
You'll be able to change this later, but because changes of payout addresses
are validated by checking transactions on the blockchain, it's important that
this be a usable address that you control.
Substitute your own values for the tokens in the script below, then run it! Also, if you'd prefer that a different email address be associated with your account, change that as well.
Substitute your own values for the tokens in the script below, then run it!
Also, if you'd prefer that a different email address be associated with your
account, change that as well.
For an existing account:
To accept the invitation using your current aftok.com account, you'll simply need to
replace the <USER> token in the command below with your username:
curl -k -v -u <USER> -d '' https://aftok.com/accept_invitation?invCode=$inv_code$