Bitcoin Forum
May 27, 2024, 08:17:07 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 [3]
41  Bitcoin / Bitcoin Technical Support / Re: What is the difference between Segwit? Native Segwit? Legacy? Which one better? on: August 04, 2019, 01:24:23 PM

Since BitStamp supports SegWit, I would recommend you choosing a native SegWit address in the Ledger Live. Nested SegWit ensures 100% compatibility with services which don't support SegWit yet, but you will save a bit less on fees in the future if you choose it.

so, Nested Segwit is synonymous to Segwit, not Native Segwit..

and Native Segwit is synonymous to Bech32, right?


but on this wiki it reports BitStamp as not yet adopting bech32 ..  Huh

and a stupid question, why is it that if it was introduced later they called it "Native", just to add some more confusion ..  Smiley
42  Bitcoin / Bitcoin Technical Support / Re: What is the difference between Segwit? Native Segwit? Legacy? Which one better? on: August 04, 2019, 12:48:32 PM
I've been reading the topic but couldn't find an answer to my issue, which is real simple:

what the heck do I choose??  Grin  Huh



I have a BitStamp account waiting and still cant understand if I need to activate a Native Segwit or Segwit account on my Ledger Live ..

I have found this article on the news announcement section of BitStamp but wasnt able to find out where my address belongs and still cant move on
43  Bitcoin / Hardware wallets / Re: Problems with Ledger Live and Ubuntu on: August 02, 2019, 12:07:48 PM
thanks guys, it worked.!!

44  Bitcoin / Hardware wallets / Re: Problems with Ledger Live and Ubuntu on: August 02, 2019, 08:01:52 AM

Yes.

Since you are already in the plugdev group (ubuntu creates it upon installation and adds the initial user account into it; other distros don't), you can skip step 1 and continue with step 2 of the guide from ledger.com.

Enter this command:
Code:
wget -q -O - https://raw.githubusercontent.com/LedgerHQ/udev-rules/master/add_udev_rules.sh | sudo bash

This command downloads the script from ledger's github and pipes it into bash (i.e. executes it).

Your OS does not know yet how to handle this unknown USB device you are plugging in.
That's what the udev rules are for.


Afterwards ledger live (and electrum or any other wallet) should be able to connect to your nano s.  Smiley

ok, thanks. I'll try that out asap. I had stopped because I wasn't sure I had cleared step one and could proceed with step two
45  Bitcoin / Hardware wallets / Re: Problems with Ledger Live and Ubuntu on: August 01, 2019, 02:11:41 PM
and there it is: it does look like I am in the group, doesn't it..




and at this point I may just want to stop, to prevent any mess I could do ..

any suggestion is much appriciated
46  Bitcoin / Hardware wallets / Re: Problems with Ledger Live and Ubuntu on: August 01, 2019, 02:03:28 PM

If, on the other side, you can open it.. but can't access you ledger (when opening without root), then i'd assume you didn't add the udev-rules ?
Without them, your standard user is not allowed to access USB devices (more specifically, the ledger device).
In this case, you need to adjust them.

Look at https://support.ledger.com/hc/en-us/articles/115005165269-Fix-connection-issues under 'Linux' for a How-to.

now it's this what I get:


is this what you were talking about?
47  Bitcoin / Hardware wallets / Re: Problems with Ledger Live and Ubuntu on: August 01, 2019, 01:46:51 PM
This is most probably a permission issue.

Run the following commands to give your user permission to read/write these folder (it seems that currently only root can):

Code:
sudo chmod -R 700 /home/USERNAME/.config/Ledger\ Live
sudo chown -R USERNAME:USERNAME /home/USERNAME/.config/Ledger\ Live

Replace 'USERNAME' with your username and the backslash is intended (to tell the command line that the next space is part of the folder name and not a command seperator).


Then try it again, please.

thanks, my friend!! It appears it's working! Not only I am able to run ledger live from a simple command line without sudoku, but I also can launch the application with the right-click and run or just by hitting enter.

thanks very much again; I am going to connect the ledger now: I hope I can get back here in case I need it
48  Bitcoin / Hardware wallets / Re: Problems with Ledger Live and Ubuntu on: August 01, 2019, 01:30:53 PM

You could also try to open the file without sudo (within the command line).
If you get permission denied (or similar), then the above proposed commands (chown and chmod) will fix it.

let me provide a screenshot of my attempt at opening without sudo, like you suggested:


while if, on the other hand, I open with the full formula sudoku etc etc .. it opens correctly

so: is this the case you were talking about?

thanks
49  Bitcoin / Hardware wallets / Re: Problems with Ledger Live and Ubuntu on: August 01, 2019, 12:58:35 PM

With live-distros you are mostly logged in as the root user.
And after installing it, a standard user has been created.

first of all, thanks for the answer. This explains a lot in the first place, I guess.

Now, am i right assuming that you can't open it at all ?
If so, i guess the permissions aren't correctly set (did you download/install it with sudo ?)
Navigate (via terminal) into the folder where the appimage is located, then enter these 2 commands:

Code:
sudo chown USERNAME:USERNAME NameOfFile.AppImage
chmod 554 NameOfFile.AppImage

Try to open it afterwards without sudo (preferably via the terminal, to see any error output). If it works, it also works via right-click.

Let me explain what happens in my case: I do am able to open the application, but just by terminal, using this line of command:

Code:
sudo ./NameOfFile.AppImage

which of course I took from this topic some answers ago.

Now, what I can't do is just double click on the icon and launch the application, or press enter or right-click and run whatever.

And no: I didn't install with sudo. I don't even know what install means in this case: it looks like one of those .dmg application where you never really have and installation: the icon just sits on the folder and anytime you want to open it it looks like a new start ..

or may be this line of code means installation ..
Code:
sudo ./NameOfFile.AppImage
I don't know

I am going to try what you suggested and then get back here



If, on the other side, you can open it.. but can't access you ledger (when opening without root), then i'd assume you didn't add the udev-rules ?
Without them, your standard user is not allowed to access USB devices (more specifically, the ledger device).
In this case, you need to adjust them.

Look at https://support.ledger.com/hc/en-us/articles/115005165269-Fix-connection-issues under 'Linux' for a How-to.
[/quote]
50  Bitcoin / Hardware wallets / Re: Problems with Ledger Live and Ubuntu on: July 31, 2019, 04:43:43 PM
useful topic this one.. but please explain to me how is this possible..

when I run the ledger-live.AppImage on Ubuntu LIVE it works by just enabling the "run as application" with the right-click on properties and then double click on the icon, BUT once I installed ubuntu (19.04) on the hard drive (ssd) alongside win 7 it won't open anymore UNLESS I perform a sudo command from terminal ..

can someone explain that? thanks Smiley
51  Local / Discussioni avanzate e sviluppo / Re: API BitStamp e Javascript, nozioni generali on: June 06, 2019, 03:28:51 PM
aggiornamento:

continuando nel mio percorso adesso sono arrivato al punto in cui ricevo un errore specifico: api: la tua signature è diversa dalla nostra.

In parte conferma i miei dubbi già espressi ieri, e cmq è sempre meglio di niente.

Se non trovo soluzioni contatto l'assistenza
52  Local / Discussioni avanzate e sviluppo / API BitStamp e Javascript, nozioni generali on: June 05, 2019, 05:17:26 PM
buongiorno a tutti ragazzi,
spero questo sia il forum giusto.

è da diverso tempo che sono iscritto ma forse non ho mai postato, essendomi dedicato finora più che altro all'aspetto finanziario della trattazione del btc.

è pertanto per me un certo sollievo ritrovare questa pagina e scoprire che è piena di discussioni tecniche, quindi mi fa ben sperare.
(tra l'altro devo aver visto un video su YT, una conferenza all'università di Venezia dove interveniva anche un ragazzo che si presentava come moderatore di questa sezione, mi ha fatto una buona impressione)
Spiego la mia necessità.

Sto costruendo un banale portfoglio in google sheets con js per avere sempre sotto controllo tutti gli assets.

Nel desiderio di renderlo automatico vorrei implementare il collegamento ai vari account attraverso le API (non so se dice gli api ma a me piace proprio dire le api), cominciando da BitStamp appunto.

Un banale collegamento per il feed del prezzo in tempo reale sono già riuscito a farlo, avendo acquisito in questi giorni i rudimenti di js necessari a un primo utilizzo, ma davanti alla connessione api mi sono fermato, essendoci molte cose che non mi sono proprio chiare.

E dal momento che credo siano più che altro dubbi legati a una mancanza di esperienza (e conoscenza) nel campo ho pensato che fosse meglio chiedere indicazioni e spiegazioni.

Se volete andare avanti nella lettura linko quindi la pagina e procedo con l'esposizione:
https://www.bitstamp.net/api/

1. Autenticazione in 2 passaggi o in 1?
prima domanda. Come vedete al paragrafo "API authentication" si legge:

Quote
All private API calls require authentication. For a successful authentication you need to provide your API key, a signature and a nonce parameter.

Passa poi a elencare e descrivere brevemente i parametri indicati; se non che più in basso aggiunge:

Quote
Signature is a HMAC-SHA256 encoded message containing nonce, customer ID and API key

Chiederò dopo info specifiche sulla signature, quindi in questo momento il mio dubbio non è sapere cosa sono questi elementi, il mio dubbio è un altro: questi elementi, questi dati, vanno forniti una volta sola, cioè concatenati insieme e digeriti sottoforma di stringa criptata, oppure vanno inviati due volte, e cioè la prima volta come dati in chiaro e una seconda volta come stringa criptata??

Spero che la domanda sia chiara e ve la rappresento qui sotto con uno schemino:


il buon senso mi fa pensare che vanno mandati una sola volta, e cioè tutti concatenati insieme e elaborati come stringa criptata secondo i loro requisiti, altrimenti non avrebbe senso prendere tutte queste precauzioni in termini di sicurezza.

Questo mi porta allora alla mia seconda domanda, che riguarda il nonce



2.Se il nonce cambia sempre a ogni connessione, come fanno loro a avere un termine di paragone?

Anche qui mi spiego:

ammettiamo che voi andate in un club super segreto, dove per entrare è richiesta la password. La password deve essere composta da una stringa nella quale sono concatenate le seguenti informazioni :

  • il vostro numero di tessera;
  • il vostro nickname;
  • la data del giorno corrente espressa secondo gg/mm/aa

tutto questo sommato insieme e digerito secondo la formattazione xy-256 ecc ecc

message = tessera.ID + nickname + date()
funzione digerisci()
   message secondo il protocollo xy-256

all'ingresso ricevono il messaggio, lo decodificano e dicono "accidenti è proprio lui, facciamolo entrare".

E fino a qui tutto ok, ci arrivo anche io a capirlo.


Ma se il club ti dicesse: "Guarda per entrare la password deve essere una stringa criptata composta da queste informazioni concatenate:"

  • il tuo numero di tessera;
  • il tuo nickname;
  • un numero a piacere che deve essere sempre diverso a ogni richiesta, compreso tra 1 e mille miliardi di milioni

la mia domanda è: loro come fanno a avere un riscontro su questo ultimo valore??

Perché se non ho capito male in nonce è in fondo un valore arbitrario, che tu puoi impostare in maniera più o meno arbitraria..

O forse il nonce è un limite di tempo che tu dai al tuo tentativo di connessione in modo da impedire un tentativo di ripetizione da parte di altri? Allora in questo caso vorrebbe dire che il server ricevente è cmq in grado di spacchettare il tutto e suddividere le informazioni di accesso dal nonce .. per favore fatemi capire se potete.

terza domanda (entrando un po' più nel tecnico)
3. Qual' è una libreria valida per generare un codice universalmente accettato?

Seguendo queste indicazioni su Stackoverflow ho trovato questa libreria elaborata da un gruppo dell'università di Stanford e ho implementato anche io nel mio piccolo il codice:

a questo punto però un po' di sana suspance .. se c'è qualcuno che mi segue e ha desiderio di rispondermi fatemi sapere che continuo a scrivere la seconda parte.

a dopo grazie
53  Other / Beginners & Help / Re: Getting market's API (Ticker) data into Excel 2007 without Copy and Paste? on: May 01, 2018, 03:09:23 PM
I checked and it is working ok.

Vba code copied from macro

Code:
Option Explicit
Public JSON As Object
Private ie As Object

Sub test()

Call initJson

    Dim jsObj As Object
    Dim jsArray As Object

   

Dim x As Long, y As Long
    Dim htm As Object

    Set htm = CreateObject("htmlFile")

    With CreateObject("msxml2.xmlhttp")
        .Open "GET", "https://www.bitstamp.net/api/ticker/", False
        .send
        htm.body.innerhtml = .responsetext
    End With
   
    Set jsObj = JSON.Parse(htm.body.innerhtml)
    Cells(1, 2) = jsObj.getItem("high")
    Cells(2, 2) = jsObj.getItem("last")
    Cells(3, 2) = jsObj.getItem("timestamp")


End Sub




Public Sub initJson()
    Dim html As String

    html = "<!DOCTYPE html><head><script>" & _
    "Object.prototype.getItem=function( key ) { return this[key] }; " & _
    "Object.prototype.setItem=function( key, value ) { this[key]=value }; " & _
    "Object.prototype.getKeys=function( dummy ) { keys=[]; for (var key in this) if (typeof(this[key]) !== 'function') keys.push(key); return keys; }; " & _
    "window.onload = function() { " & _
    "document.body.parse = function(json) { return JSON.parse(json); }; " & _
    "document.body.stringify = function(obj, space) { return JSON.stringify(obj, null, space); }" & _
    "}" & _
    "</script></head><html><body id='JSONElem'></body></html>"

    Set ie = CreateObject("InternetExplorer.Application")
    With ie
        .navigate "about:blank"
        Do While .Busy: DoEvents: Loop
        Do While .readyState <> 4: DoEvents: Loop
        .Visible = False
        .document.Write html
        .document.Close
    End With

    ' This is the body element, we call it JSON:)
    Set JSON = ie.document.getElementById("JSONElem")

End Sub

Public Function closeJSON()
    ie.Quit
End Function

What exactely you need?
With macro I can get for example : https://www.bitstamp.net/api/ticker/ or other api. Only what you need is IE8 or higher.

Here is example
For refreshing data just click on button refresh.
Excel file: https://www.dropbox.com/s/u44xev0wvwjgmyk/Zvezek1.xlsm?dl=0

If you need further help just say and I will try to help you.

could it be possible to have the dropbox file back on line?
I checked to and unfortunately it's not working ok for me :/

the problem with excel 2007 is that you can't install power query, and at the moment I would prefer not switching to excel 2010+
54  Alternate cryptocurrencies / Altcoin Discussion / Re: Make Your Own Custom Excel Coin Tracker using Coinmarket Cap APIs on: April 29, 2018, 10:17:57 AM
thanks very much, will try it out today
Pages: « 1 2 [3]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!