elective-stereophonic
elective-stereophonic
Generate a token locally
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.12.1 Upgrade before block 2870000 is mandatory!

Author Topic: Generate a token locally  (Read 1535 times)

Irontiga

  • Full Member
  • ***
  • Karma: +9/-4
  • Offline Offline
  • Posts: 123
    • View Profile
    • burstcoin.info
Generate a token locally
« on: July 01, 2015, 05:33:23 am »

Hey, let's say I want to have clients login with a username and their nxt address passphrase, but don't want to send the passphrase to my server, how would i create a token in js locally? Have tried to look through the wallet files but....they're confusing me :/

I actually want to use this for creating tx.'s as well...so is there any guide or docs on how to use the passphrase and some js files to sign a tx. and then send it to my server? (and then i guess the server broadcast or decode, but that's easy ;P)
Logged
NXT-S27N-JBGA-J8QD-AMAT8

jones

  • Hero Member
  • *****
  • Karma: +310/-8
  • Offline Offline
  • Posts: 1043
  • write code not war
    • View Profile
    • jNxt
Re: Generate a token locally
« Reply #1 on: July 02, 2015, 06:04:34 am »

Hey, let's say I want to have clients login with a username and their nxt address passphrase, but don't want to send the passphrase to my server, how would i create a token in js locally? Have tried to look through the wallet files but....they're confusing me :/

I actually want to use this for creating tx.'s as well...so is there any guide or docs on how to use the passphrase and some js files to sign a tx. and then send it to my server? (and then i guess the server broadcast or decode, but that's easy ;P)

For javascript token generation you want https://github.com/jonesnxt/tokenjs
For javascript client side transaction generation and signing you can look to https://github.com/jonesnxt/vapor which has a few different types of local signing.
Logged
-- Jones NXT-RJU8-JSNR-H9J4-2KWKY

Irontiga

  • Full Member
  • ***
  • Karma: +9/-4
  • Offline Offline
  • Posts: 123
    • View Profile
    • burstcoin.info
Re: Generate a token locally
« Reply #2 on: July 09, 2015, 04:52:16 am »

Hey, let's say I want to have clients login with a username and their nxt address passphrase, but don't want to send the passphrase to my server, how would i create a token in js locally? Have tried to look through the wallet files but....they're confusing me :/

I actually want to use this for creating tx.'s as well...so is there any guide or docs on how to use the passphrase and some js files to sign a tx. and then send it to my server? (and then i guess the server broadcast or decode, but that's easy ;P)

For javascript token generation you want https://github.com/jonesnxt/tokenjs
For javascript client side transaction generation and signing you can look to https://github.com/jonesnxt/vapor which has a few different types of local signing.

Thx, both are perfect :D
Logged
NXT-S27N-JBGA-J8QD-AMAT8
 

elective-stereophonic
elective-stereophonic
assembly
assembly