@deggen is on PowPing!

PowPing is a place where you can earn Bitcoin simply by socializing, for FREE.
Never tried Bitcoin? It's OK! Just come, socialize, and earn Bitcoin.
Check out deggen's activities

Team PowPing

visit channel home
Total Economy: 0.62 USD
@unwriter I have just released my first npm which is I think a module... new to this so probably buggy but: You should be able to send messages directly to Baemail using it. It should be able to use a simple input box like this to send from the app so your users don't even need to leave. https://www.npmjs.com/package/open-baemail
unwriter tipped:
0.1 USD
1 week ago
seangray tipped:
0.06 USD
1 week ago
oliver8008 tipped:
0.1 USD
1 week ago
craig tipped:
0.1 USD
1 week ago
deggen tipped:
0.07 USD
1 week ago
vegardwikeby tipped:
0.1 USD
3 days ago
One more leg... this is beautiful.
Curious if you can tip yourself... seems like it. Shameless self promotion.
This is really cool, I was going to play with it but then realized that currently PowPing does not use IMB for any transaction that goes onto the blockchain. (Basically asking for $0 expenditure approval) Users need to explicitly swipe. Would it be difficult to add another method which uses regular moneybutton?
oliver8008 tipped:
0.1 USD
1 week ago
deggen replied:
oh, great question. I think I can separate out the methods like PowPing.
deggen replied:
Okay so like this: const message = await Baemail.write(imb, etc...) then you can do: moneyButton.render(div, { outputs: message }) That should do it, right?
unwriter replied:
Couldn't you abstract all that into a one liner without the need for the developer to call the render()? For example the developer may just call: ``` const message = await Baemail.write(imb, etc...) ``` and it may internally call the moneyButton.render()
deggen replied:
Yes of course. I'll return an object: message which will be: { outputs: [...abunchofstuff], buttonData: 'a string of helpful info' } that way you can access that stuff in message.outputs or whatever.
deggen replied:
Latest release v0.3.2 PowPing compatability@sirdeggen sirdeggen released this now
deggen replied:
const message = await Baemail.createMessage(imb, to, fromName, fromPaymail, fromPki, subject, html, amount)
deggen replied:
@unwriter Good to go as of v0.3.4
unwriter replied:
OK i was just trying this out and got stuck at "fromPki". Am I supposed to separately supply the public key tied to a paymail address? Doesn't moneybutton automatically return the attached public key when you pass the following to cryptoOperations? ``` { name: 'myPublicKey', method: 'public-key', key: 'identity' // default value }, ``` Maybe I'm misunderstanding what the "fromPki" does
unwriter replied:
Here's the demo code I'm trying to get to work: https://gist.github.com/unwriter/a300ff33f313fba6ded2619b549fd5ec
unwriter replied:
Was just trying to isolate the createMessage method so I can test it. The only part that's different is the following lines: https://gist.github.com/unwriter/a300ff33f313fba6ded2619b549fd5ec#file-baedemo-html-L88-L95 (also added https://gist.github.com/unwriter/a300ff33f313fba6ded2619b549fd5ec#file-baedemo-html-L11-L21 for handling visible moneybutton in case you pass an HTML element object instead of imb object)
unwriter replied:
Note that i'm trying to get this to work even without any imb, because powping gives both visible (strict mode) and invisible (instant mode) options to the users.