Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥

Uma implementação de Blockchain com Swift e Vapor

Uma implementação de Blockchain com Swift e Vapor

Talk do 27o. encontro Cocoatalks do Cocoaheads de Campinas sobre uma implementação simples e com fins educacionais de Blockchain. Ideal para devs das plataformas da Apple por ser 100% em swift utilizando o web framework Vapor.

Avatar for Augusto Souza

Augusto Souza

July 31, 2018
Tweet

Other Decks in Technology

Transcript

  1. Uma implementação de Blockchain com Swift + Vapor The information

    in this document is confidential to the person to whom it is addressed and should not be disclosed to any other person. It may not be reproduced in whole, or in part, nor may any of the information contained therein be disclosed without the prior consent of the directors of iFood. It has been used as support material for an oral presentation and, therefore, it does not represent a complete record of the topics presented in the mentioned presentation.
  2. Pai da Julieta Dev iOS desde 2011 32 anos Interesse

    por Sistemas Distribuídos Quem sou eu?
  3. Grande “livro contábil” para o registro de transações. Essas transações

    são gravadas de maneira distribuída. Muito utilizada com criptomoedas, pois: Blockchain ! Transações não precisam ser controladas por uma entidade única ! Não possuem ponto único de falha ! Transparência (transações públicas)
  4. O mais popular Web framework do mundo Swift. Vapor !

    Possibilita escrever backend e frontend na mesma linguagem ! Comunidade forte e amigável ! Perfomático ! Swift 4 ! (Codable + Key paths) ! HTTP + Websockets + Templates ! MongoDB, MySQL, Postgres, Redis ! Services ! ORM (Fluent) ! Async e não-bloqueante (event loops)
  5. $ vapor new Naivecoin $ cd Naivecoin $ vapor update

    $ vapor xcode $ vapor build $ vapor run —-port=8080
  6. Nó 1 Nó 2 Add Peer Websocket connection Add Peer

    Server Client Websocket connection Server Client
  7. Nó 1 Nó 2 Nó 3 Nó 4 Nó N

    . . . Mine Block Broadcast Broadcast Broadcast Broadcast
  8. Próximos passos 1. Continuar seguindo tutorial Naivecoin 2.Criar uma wallet

    em iOS 3.Melhorar a comunicação P2P http://github.com/augustorsouza/NaivecoinSwift