Bitcoin Forum

Other => Beginners & Help => Topic started by: Delphi753 on October 28, 2011, 11:00:25 PM



Title: Help to develop delphi/pascal bitcoin client
Post by: Delphi753 on October 28, 2011, 11:00:25 PM
Hi all,

I have registered to try to talk about pascal bitcoin developnent.

I will need some help to try to start developing a library that will be used in a bitcoin pascal client.

If you can help, please.

Starting with basic class:

  TBase58 = class(TObject)
  public
    function CharSet: WideString; //valid chars
    function Encode: WideString; //encode Text to base 58
    function Decode: WideString; // decode Text from base 58
    property Text: WideString read FText write FText; // text to be encoded decoded
  end;


Title: Re: Help to develop delphi/pascal bitcoin client
Post by: Delphi753 on October 28, 2011, 11:16:52 PM
converted from php code.

function CharSet: WideString;
begin
  Result := '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ';
end;

function TBase58.Encode: WideString;
var
  ADiv: Extended;
  ANum, AMod: Int64;
begin
  Result := '';

  ANum := StrToInt64(Text);
  while (ANum >= Count) do
  begin
    ADiv := ANum / Count;
    AMod := Trunc(ANum - (Count * Int(ADiv)));
    Result := CharSet[succ(AMod)] + Result;
    ANum := Trunc(Int(ADiv));
  end;

  if (ANum > 0) then
    Result := CharSet[succ(ANum)] + Result;
end;



Title: Re: Help to develop delphi/pascal bitcoin client
Post by: Darka on March 27, 2012, 02:20:35 PM
Do you have any progress with Delphi client?


Title: Re: Help to develop delphi/pascal bitcoin client
Post by: jake262144 on March 27, 2012, 06:50:19 PM
*sings out loud* An Ada client, BASIC code pointerless and cross-compiled, why?(1)

Notes:
(1) Line supposed to be sung to the melody of System of a Down/I-E-A-I-A-I-O  ;D


Title: Re: Help to develop delphi/pascal bitcoin client
Post by: z3rohour on March 27, 2012, 06:55:44 PM
How is different than the one now?


Title: Re: Help to develop delphi/pascal bitcoin client
Post by: Inaba on March 27, 2012, 07:03:12 PM
http://media.giantbomb.com/uploads/4/48363/1102736-1041194_thread_necro_super_super.jpg