[ANN] Cloth 0.2.5 - A Clojure(Script) library for interacting with the Ethereum blockchain

2016-07-17 Thread Pelle Braendgaard
Cloth attempts to emulate the web3.js library for writing both browser and
server side apps interacting with the Ethereum blockchain.

https://github.com/pelle/cloth

It allows you to:

- Create Ethereum Keypairs
- Create and send transactions to the blockchain
- Query the blockchain for blocks/transactions etc
- Compile Solidity Smart contracts
- Creates clojure bindings to functions in your Solidity Smart Contracts
- Blockchain interaction through a JSON-RPC node

My plan is to add support for EthereumJ which will allow you to run a full
Ethereum node in a JVM.

The library uses Funcool's Promesa library which allows you to compose
multiple steps into a single function. I find this works great for complex
applications.



-- 
*http://stakeventures.com *

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Friend: an extensible authentication and authorization library for Clojure Ring webapps and services

2012-06-06 Thread Pelle Braendgaard
I've written a simple OAuth2 library oauthentic
https://github.com/pelle/oauthentic which should make it easy to connect to
at least Facebook as it only supports oauth2.

I started investigating connecting it with friend and it looks pretty
simple, but haven't currently got any time to do so.

P

On Mon, Jun 4, 2012 at 6:23 PM, DAemon forsakendae...@gmail.com wrote:

 Hi Chas,

 Was wondering whether there's been any work on extending Friend to OAuth
 stuff yet - I'm looking at implementing something that requires
 authentication with Twitter or Facebook, and haven't quite got my head
 around all the steps required to implement it myself...

 Thanks!

 - David

 On Thu, Apr 12, 2012 at 12:59 AM, Chas Emerick c...@cemerick.com wrote:

  For your consideration, a new library http://wp.me/p10OJi-d6:

  I’m hoping this can eventually be
 a warden/spring-security/everyauth /omniauth for Clojure; that is, a common
 abstraction for authentication and authorization mechanisms.  Clojure has
 been around long enough that adding pedestrian things like form and HTTP
 Basic and $AUTH_METHOD_HERE to a Ring application should be easy.  Right
 now, it’s not: either you’re pasting together a bunch of different
 libraries that don’t necessarily compose well together, or you get drawn
 into shaving the authentication and authorization yaks for the fifth time
 in your life so you can sleep well at night.

 Hopefully Friend will make this a solved problem, or at least push things
 in that direction.


 Read more here: http://wp.me/p10OJi-d6

 Cheers,

 - Chas

 --
 http://cemerick.com
 [Clojure Programming from O'Reilly](http://www.clojurebook.com)

 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en




-- 
http://picomoney.com - A whole new kind of money
http://payglo.be - Blog about payments from a global perspective

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Friend: an extensible authentication and authorization library for Clojure Ring webapps and services

2012-06-06 Thread Pelle Braendgaard
To see how to use it in a noir context I created this demo app:

https://github.com/pelle/oauthentic-demo/blob/master/src/oauthentic_demo/views/welcome.clj#L32

It authenticates to GitHub with OAuth2

Try it out here: http://oauthentic.herokuapp.com/

P

On Wed, Jun 6, 2012 at 4:47 PM, Pelle Braendgaard
pe...@stakeventures.comwrote:

 I've written a simple OAuth2 library oauthentic
 https://github.com/pelle/oauthentic which should make it easy to connect
 to at least Facebook as it only supports oauth2.

 I started investigating connecting it with friend and it looks pretty
 simple, but haven't currently got any time to do so.

 P


 On Mon, Jun 4, 2012 at 6:23 PM, DAemon forsakendae...@gmail.com wrote:

 Hi Chas,

 Was wondering whether there's been any work on extending Friend to OAuth
 stuff yet - I'm looking at implementing something that requires
 authentication with Twitter or Facebook, and haven't quite got my head
 around all the steps required to implement it myself...

 Thanks!

 - David

 On Thu, Apr 12, 2012 at 12:59 AM, Chas Emerick c...@cemerick.com wrote:

  For your consideration, a new library http://wp.me/p10OJi-d6:

  I’m hoping this can eventually be
 a warden/spring-security/everyauth /omniauth for Clojure; that is, a common
 abstraction for authentication and authorization mechanisms.  Clojure has
 been around long enough that adding pedestrian things like form and HTTP
 Basic and $AUTH_METHOD_HERE to a Ring application should be easy.  Right
 now, it’s not: either you’re pasting together a bunch of different
 libraries that don’t necessarily compose well together, or you get drawn
 into shaving the authentication and authorization yaks for the fifth time
 in your life so you can sleep well at night.

 Hopefully Friend will make this a solved problem, or at least push
 things in that direction.


 Read more here: http://wp.me/p10OJi-d6

 Cheers,

 - Chas

 --
 http://cemerick.com
 [Clojure Programming from O'Reilly](http://www.clojurebook.com)

 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en




 --
 http://picomoney.com - A whole new kind of money
 http://payglo.be - Blog about payments from a global perspective




-- 
http://picomoney.com - A whole new kind of money
http://payglo.be - Blog about payments from a global perspective

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Clauth - OAuth2 provider for Ring

2012-04-27 Thread Pelle Braendgaard
I'm sorry I forgot to include it.

I'm happy to answer any questions about it.

P

On Fri, Apr 27, 2012 at 5:25 AM, Vijay Kiran m...@vijaykiran.com wrote:


 I guess it is  https://github.com/pelle/clauth

 ./vijay

 On Friday, April 27, 2012 6:43:29 AM UTC+2, Shantanu Kumar wrote:

 That sounds quite interesting! Do you have a Github URL of the project
 to share?

 Shantanu

 On Apr 25, 12:29 am, Pelle Braendgaard pel...@gmail.com wrote:
  This is a simple OAuth 2 provider that is designed to be used as a
 primary
  authentication provider for a Clojure Ring app.
 
  I am a relative Clojure novice, but have am very experienced in OAuth.
  Please help give feedback on use of idiomatic clojure.
 
  It currently handles OAuth2 bearer authentication and interactive
  authentication.
 
  By interactive authentication I mean, it can be used for primary end
 user
  authentication by sticking a token in a session. This means that you
 could
  eventually provide google/facebook like session overviews and log off
  remote sessions.
 
  The following bearer tokens are implemented:
 
  * Authorization headerhttp://tools.ietf.org/**html/draft-ietf-oauth-v2-
 **bearer-08#section-2.1http://tools.ietf.org/html/draft-ietf-oauth-v2-bearer-08#section-2.1
  * Form encoded body parameterhttp://tools.ietf.**
 org/html/draft-ietf-oauth-v2-**bearer-08#section-2.2http://tools.ietf.org/html/draft-ietf-oauth-v2-bearer-08#section-2.2
  * URI query fieldhttp://tools.ietf.org/**html/draft-ietf-oauth-v2-**
 bearer-08#section-2.3http://tools.ietf.org/html/draft-ietf-oauth-v2-bearer-08#section-2.3
  * Non standard http cookie ('access_token') for use in interactive
  applications
  * Non standard session ('access_token') for use in interactive
 applications
 
  Authorization response types:
 
  * Authorization Code Granthttp://tools.ietf.org/**
 html/draft-ietf-oauth-v2-25#**section-4.1http://tools.ietf.org/html/draft-ietf-oauth-v2-25#section-4.1
  * Implicit Granthttp://tools.ietf.org/**html/draft-ietf-oauth-v2-25#**
 section-4.2http://tools.ietf.org/html/draft-ietf-oauth-v2-25#section-4.2
 
  Currently the following Grant types are supported:
 
  * Authorization Code Granthttp://tools.ietf.org/**
 html/draft-ietf-oauth-v2-25#**section-4.1http://tools.ietf.org/html/draft-ietf-oauth-v2-25#section-4.1
  * Client Credential Granthttp://tools.ietf.org/**
 html/draft-ietf-oauth-v2-25#**section-4.4http://tools.ietf.org/html/draft-ietf-oauth-v2-25#section-4.4
  * Resource Owner Password Credential Granthttp://tools.ietf.org/**
 html/draft-ietf-oauth-v2-25#**section-4.3http://tools.ietf.org/html/draft-ietf-oauth-v2-25#section-4.3
 
  Currently it supports Redis and in memory for tokens, apps and users.
 There
  is a very easy protocol to implement to add further stores. I will
 probably
  add a separate one for korma and for datomic. These will be released as
  separate projects.
 
  For an interactive demo of it:
 
lein run -m clauth.demo
 
  I am working on a demo app that I will deploy on heroku.
 
  P
  --http://agree2.com- Reach 
  Agreement!http://**stakeventures.com-http://stakeventures.com-My blog 
  about startups and agile banking

  --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en




-- 
http://picomoney.com - Like money, just smaller
http://stakeventures.com - My blog about startups and agile banking

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

[ANN] Clauth - OAuth2 provider for Ring

2012-04-26 Thread Pelle Braendgaard
This is a simple OAuth 2 provider that is designed to be used as a primary
authentication provider for a Clojure Ring app.

I am a relative Clojure novice, but have am very experienced in OAuth.
Please help give feedback on use of idiomatic clojure.

It currently handles OAuth2 bearer authentication and interactive
authentication.

By interactive authentication I mean, it can be used for primary end user
authentication by sticking a token in a session. This means that you could
eventually provide google/facebook like session overviews and log off
remote sessions.

The following bearer tokens are implemented:

* Authorization header
http://tools.ietf.org/html/draft-ietf-oauth-v2-bearer-08#section-2.1
* Form encoded body parameter
http://tools.ietf.org/html/draft-ietf-oauth-v2-bearer-08#section-2.2
* URI query field
http://tools.ietf.org/html/draft-ietf-oauth-v2-bearer-08#section-2.3
* Non standard http cookie ('access_token') for use in interactive
applications
* Non standard session ('access_token') for use in interactive applications

Authorization response types:

* Authorization Code Grant
http://tools.ietf.org/html/draft-ietf-oauth-v2-25#section-4.1
* Implicit Grant
http://tools.ietf.org/html/draft-ietf-oauth-v2-25#section-4.2

Currently the following Grant types are supported:

* Authorization Code Grant
http://tools.ietf.org/html/draft-ietf-oauth-v2-25#section-4.1
* Client Credential Grant
http://tools.ietf.org/html/draft-ietf-oauth-v2-25#section-4.4
* Resource Owner Password Credential Grant
http://tools.ietf.org/html/draft-ietf-oauth-v2-25#section-4.3

Currently it supports Redis and in memory for tokens, apps and users. There
is a very easy protocol to implement to add further stores. I will probably
add a separate one for korma and for datomic. These will be released as
separate projects.

For an interactive demo of it:

  lein run -m clauth.demo

I am working on a demo app that I will deploy on heroku.

P
-- 
http://agree2.com - Reach Agreement!
http://stakeventures.com - My blog about startups and agile banking

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: simple journal-based persistenсe for Clojure

2009-12-03 Thread Pelle Braendgaard
I was just starting to research if there was a prevayler like solution
for clojure. Thanks.

I'll start playing with it.

Do you have a github project for it yet?

P

On Wed, Dec 2, 2009 at 9:18 AM, Sergey Didenko sergey.dide...@gmail.com wrote:
 It creates journals in readable and executable form:
 1.journal
 
 (tr-fn 1 2) ;1
 (tr-fn 10 20) ;2
 (tr-fn-swap) ;3
 (tr-inc) ;4
 

 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with your
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en



-- 
http://agree2.com - Reach Agreement!
http://extraeagle.com - Solutions for the electronic Extra Legal world
http://stakeventures.com - Bootstrapping blog

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en